Skip to content

Commit facec0b

Browse files
committed
RHAIENG-2111: chore(trustyai): activate subscription for devel env, part of fixing podman build in rhds: error: command 'g++' failed: No such file or directory
1 parent 7705753 commit facec0b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

jupyter/trustyai/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked,id=notebooks-dnf \
3838
--mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
3939
set -Eeuxo pipefail
4040
pip install --no-cache-dir uv
41+
42+
# If we have a Red Hat subscription prepared, refresh it
43+
if command -v subscription-manager &> /dev/null; then
44+
subscription-manager identity &>/dev/null && subscription-manager refresh || echo "No identity, skipping refresh."
45+
fi
46+
4147
# the devel script is ppc64le and s390x specific - sets up build-time dependencies
4248
source ./devel_env_setup.sh
4349
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,

jupyter/trustyai/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ COPY ${TRUSTYAI_SOURCE_CODE}/devel_env_setup.sh .
4040
RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
4141
set -Eeuxo pipefail
4242
pip install --no-cache-dir uv
43+
44+
# If we have a Red Hat subscription prepared, refresh it
45+
if command -v subscription-manager &> /dev/null; then
46+
subscription-manager identity &>/dev/null && subscription-manager refresh || echo "No identity, skipping refresh."
47+
fi
48+
4349
# the devel script is ppc64le and s390x specific - sets up build-time dependencies
4450
source ./devel_env_setup.sh
4551
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,

0 commit comments

Comments
 (0)