From 40190270705c420ccd356347b22c6ece2a62e7f8 Mon Sep 17 00:00:00 2001 From: ehhuang Date: Mon, 28 Jul 2025 15:30:25 -0700 Subject: [PATCH] chore: revert #2855 (#2939) # What does this PR do? revert https://github.com/meta-llama/llama-stack/pull/2855 to unblock release (running out of disk space) Error here: https://github.com/llamastack/llama-stack-ops/actions/runs/16579983004/job/46893549312 ## Test Plan --- llama_stack/distribution/build_container.sh | 25 +++++++-------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/llama_stack/distribution/build_container.sh b/llama_stack/distribution/build_container.sh index 7c406d3e7..50d8e4925 100755 --- a/llama_stack/distribution/build_container.sh +++ b/llama_stack/distribution/build_container.sh @@ -18,10 +18,6 @@ UV_HTTP_TIMEOUT=${UV_HTTP_TIMEOUT:-500} # mounting is not supported by docker buildx, so we use COPY instead USE_COPY_NOT_MOUNT=${USE_COPY_NOT_MOUNT:-} - -# Mount command for cache container .cache, can be overridden by the user if needed -MOUNT_CACHE=${MOUNT_CACHE:-"--mount=type=cache,id=llama-stack-cache,target=/root/.cache"} - # Path to the run.yaml file in the container RUN_CONFIG_PATH=/app/run.yaml @@ -176,18 +172,13 @@ RUN pip install uv EOF fi -# Set the link mode to copy so that uv doesn't attempt to symlink to the cache directory -add_to_container << EOF -ENV UV_LINK_MODE=copy -EOF - # Add pip dependencies first since llama-stack is what will change most often # so we can reuse layers. if [ -n "$normal_deps" ]; then read -ra pip_args <<< "$normal_deps" quoted_deps=$(printf " %q" "${pip_args[@]}") add_to_container << EOF -RUN $MOUNT_CACHE uv pip install $quoted_deps +RUN uv pip install --no-cache $quoted_deps EOF fi @@ -197,7 +188,7 @@ if [ -n "$optional_deps" ]; then read -ra pip_args <<< "$part" quoted_deps=$(printf " %q" "${pip_args[@]}") add_to_container <