Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed Mar 6, 2024
1 parent e1268d4 commit d50ad78
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $(TMP_BUILD_DIR)/conda-lock-image: Dockerfile.conda-lock | $(TMP_BUILD_DIR)
touch $(TMP_BUILD_DIR)/conda-lock-image

monodocs-environment.lock.yaml: monodocs-environment.yaml $(TMP_BUILD_DIR)/conda-lock-image
docker run --rm --pull never -v ./:/flyte flyte-conda-lock:latest lock --file monodocs-environment.yaml --lockfile monodocs-environment.lock.yaml --channel conda-forge
docker run --rm --pull never -v ./:/flyte flyte-conda-lock:latest lock --file monodocs-environment.yaml --lockfile monodocs-environment.lock.yaml

$(TMP_BUILD_DIR)/dev-docs-image: Dockerfile.docs monodocs-environment.lock.yaml | $(TMP_BUILD_DIR)
docker buildx build --load --build-arg USER_UID=$$(id -u) --build-arg USER_GID=$$(id -g) -t flyte-dev-docs:latest -f Dockerfile.docs .
Expand Down
8 changes: 4 additions & 4 deletions monodocs-environment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: monodocs-env
channels:
- conda-forge
- anaconda
dependencies:
- python=3.9
- pip
Expand Down Expand Up @@ -50,7 +51,7 @@ dependencies:
- skl2onnx # onnxscikitlearn
- numpy==1.23.5 # onnxtensorflow numpy.bool warning
- tf2onnx # onnxtensorflow
- tensorflow>=2.13.0 # onnxtensorflow
- tensorflow>=2.12.0 # onnxtensorflow
- scikit-learn # scikit-learn
- dask[distributed] # dask
- mlflow==2.7.0 # mlflow
Expand All @@ -76,7 +77,6 @@ dependencies:
- duckdb

platforms:
- linux-64
# - linux-64
- linux-aarch64
- osx-64
- osx-arm64
# - osx-arm64
6 changes: 6 additions & 0 deletions script/local_build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -eo pipefail
# - DEV_DOCS_WATCH: If set, the docs will be built and served using sphinx-autobuild for live updates
# - FLYTEKIT_LOCAL_PATH: If set, the local path to flytekit will be used instead of the source code from the flyteorg/flytekit repo
# - FLYTECTL_LOCAL_PATH: If set, the local path to flytectl will be used instead of the source code from the flyteorg/flytectl repo
# - FLYTESNACKS_LOCAL_PATH: If set, the local path to flytesnacks will be used instead of the source code from the flyteorg/flytesnacks repo
#
# Example usages:
# ./script/local_build_docs.sh
Expand All @@ -32,6 +33,11 @@ if [ -n "$FLYTECTL_LOCAL_PATH" ]; then
DOCKER_ENV+=("--env" "FLYTECTL_LOCAL_PATH=/flytectl")
fi

if [ -n "$FLYTESNACKS_LOCAL_PATH" ]; then
DOCKER_VOLUME_MAPPING+=("-v" "$FLYTESNACKS_LOCAL_PATH:/flytesnacks")
DOCKER_ENV+=("--env" "FLYTESNACKS_LOCAL_PATH=/flytesnacks")
fi

DOCKER_CMD=("docker" "run" "--rm" "--pull" "never" "${DOCKER_ENV[@]}" "${DOCKER_PORT_MAPPING[@]}" "${DOCKER_VOLUME_MAPPING[@]}" "flyte-dev-docs:latest" "${BUILD_CMD[@]}")

echo "${DOCKER_CMD[*]}"
Expand Down

0 comments on commit d50ad78

Please sign in to comment.