Skip to content

Commit 554e24f

Browse files
committed
RHAIENG-2189: build(codeserver): and remove the --offline flag, since it causes build failure on ppc64le
``` + uv pip install --offline --cache-dir /root/.cache/uv --requirements=./pylock.toml warning: The `--pylock` option is experimental and may change without warning. Pass `--preview-features pylock` to disable this warning. Using Python 3.12.9 environment at: /opt/app-root × Failed to download `setuptools==80.9.0` ╰─▶ Network connectivity is disabled, but the requested data wasn't found in the cache for: `https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl` subprocess exited with status 1 ```
1 parent 7895d5c commit 554e24f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codeserver/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
304304
set -Eeuxo pipefail
305305
echo "Installing softwares and packages"
306306
# we can ensure wheels are consumed from the cache only by restricting internet access for uv install with '--offline' flag
307-
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --offline --cache-dir /root/.cache/uv --requirements=./pylock.toml
308-
# Note: debugpy wheel availabe on pypi (in uv cache) is none-any but bundles amd64.so files
307+
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --cache-dir /root/.cache/uv --requirements=./pylock.toml
308+
# Note: debugpy wheel available on pypi (in uv cache) is none-any but bundles amd64.so files
309309
# Build debugpy from source instead
310310
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')
311311
# change ownership to default user (all packages were installed as root and has root:root ownership

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
317317
set -Eeuxo pipefail
318318
echo "Installing softwares and packages"
319319
# we can ensure wheels are consumed from the cache only by restricting internet access for uv install with '--offline' flag
320-
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --offline --cache-dir /root/.cache/uv --requirements=./pylock.toml
321-
# Note: debugpy wheel availabe on pypi (in uv cache) is none-any but bundles amd64.so files
320+
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --cache-dir /root/.cache/uv --requirements=./pylock.toml
321+
# Note: debugpy wheel available on pypi (in uv cache) is none-any but bundles amd64.so files
322322
# Build debugpy from source instead
323323
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')
324324
# change ownership to default user (all packages were installed as root and has root:root ownership

0 commit comments

Comments
 (0)