Skip to content

Commit

Permalink
ml-metadata-store-server rock and test
Browse files Browse the repository at this point in the history
  • Loading branch information
BON4 committed Dec 12, 2024
1 parent 8603bfb commit 08d0828
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Based on: https://github.com/google/ml-metadata/blob/v1.14.0/ml_metadata/tools/docker_server/Dockerfile
name: ml-metadata-store-server
name: ml-metadata
summary: Part of the ML Metadata (MLMD) framework.
description: |
ML Metadata is a framework for managing and tracking metadata associated with ML workflows.
It is part of the TensorFlow Extended (TFX) ecosystem, but it can be used independently as well.
version: "1.14.0"
license: Apache-2.0
base: ubuntu@20.04
base: ubuntu@22.04
run-user: _daemon_
platforms:
amd64:
Expand Down Expand Up @@ -49,11 +49,13 @@ parts:
- git
- python3-distutils
- python-is-python3
- wget
- python3-dev
- emacs
stage-packages:
- tzdata
build-environment:
- BAZEL_VERSION: 5.3.0
- BAZEL_VERSION: 5.4.0
override-build: |
set -xe
Expand All @@ -66,10 +68,24 @@ parts:
./bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
cd $CRAFT_PART_SRC
sed -i 's/651a768cd51627f58aa6de7039aba9ddab22f4b0450521169800555269447840/bfa2109d6d655fcff34c3539990bed76d05cebbd86828f1f21b0a2678d93cfa1/g' WORKSPACE
sed -i 's/ac37cf5c0d80b5605176fc0f29e87b12f00be693/06e004b3dcc72b18fef3ad3124c0406c13ff6d77/g' WORKSPACE
sed -i 's/tools_deps = False/tools_deps = True/g' WORKSPACE
sed -i 's/java_deps = False/java_deps = True/g' WORKSPACE
sed -i 's/testing_deps = False/testing_deps = True/g' WORKSPACE
sed -i 's/zetasql_deps_step_1()/zetasql_deps_step_1(add_bazel_version = True)/g' WORKSPACE
#sed -i 's/././g' WORKSPACE
bazel clean --expunge
bazel build -c opt --verbose_failures --jobs=6 --action_env=PATH \
--define=grpc_no_ares=true \
//ml_metadata/metadata_store:metadata_store_server --cxxopt="-std=c++17"
bazel build -c opt --verbose_failures --jobs=6 --action_env=PATH --define=grpc_no_ares=true //ml_metadata/metadata_store:metadata_store_server --cxxopt="-std=c++17" --conlyopt="-std=gnu17" --cxxopt="-w" --conlyopt="-w" --spawn_strategy="local"
mkdir -p $CRAFT_PART_INSTALL/bin
mkdir -p $CRAFT_PART_INSTALL/third_party
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 08d0828

Please sign in to comment.