Skip to content

Commit e4c02c5

Browse files
committed
RHAIENG-2174: build(codeserver): fix build failure "no space left on device" due to AIPCC base disabling uv cache
1 parent 051fafc commit e4c02c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

codeserver/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pip install --no-cache-dir uv
6262
source ./devel_env_setup.sh
6363
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
6464
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
65-
UV_LINK_MODE=copy uv pip install --strict --no-deps --refresh --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
65+
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --strict --no-deps --refresh --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
6666
EOF
6767

6868
# dummy file to make image build wait for this stage
@@ -303,7 +303,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
303303
--mount=type=cache,from=whl-cache,source=/wheelsdir/,target=/wheelsdir/,rw /bin/bash <<'EOF'
304304
set -Eeuxo pipefail
305305
if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
306-
uv pip install /wheelsdir/*.whl
306+
UV_NO_CACHE=false uv pip install /wheelsdir/*.whl
307307
fi
308308
EOF
309309

@@ -312,8 +312,7 @@ RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
312312
set -Eeuxo pipefail
313313
echo "Installing softwares and packages"
314314
# we can ensure wheels are consumed from the cache only by restricting internet access for uv install with '--offline' flag
315-
# TODO(jdanek): seen some builds fail on GitHub Actions with --offline and see no need to limit ourselves to the cache, will remove this
316-
UV_LINK_MODE=copy uv pip install --cache-dir /root/.cache/uv --requirements=./pylock.toml
315+
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --offline --cache-dir /root/.cache/uv --requirements=./pylock.toml
317316
# Note: debugpy wheel availabe on pypi (in uv cache) is none-any but bundles amd64.so files
318317
# Build debugpy from source instead
319318
UV_LINK_MODE=copy uv pip install --no-cache git+https://github.com/microsoft/debugpy.git@v$(grep -A1 '\"debugpy\"' ./pylock.toml | grep -Eo '\b[0-9\.]+\b')

0 commit comments

Comments
 (0)