Skip to content

Commit 7695cc1

Browse files
authored
RHAIENG-948: add subscription-manager refresh to all UBI9-based Dockerfiles for improved subscription handling (#1686)
1 parent 27d9211 commit 7695cc1

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN touch /tmp/control
7070
# cpu-base #
7171
####################
7272
FROM ${BASE_IMAGE} AS cpu-base
73+
USER 0
74+
RUN subscription-manager refresh
7375

7476
WORKDIR /opt/app-root/bin
7577

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ RUN arch="${TARGETARCH:-$(uname -m)}" && \
3737
# cpu-base #
3838
####################
3939
FROM ${BASE_IMAGE} AS cpu-base
40+
USER 0
41+
RUN subscription-manager refresh
4042

4143
WORKDIR /opt/app-root/bin
4244

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ RUN ./install_pandoc.sh
2828
# cpu-base #
2929
####################
3030
FROM ${BASE_IMAGE} AS cpu-base
31+
USER 0
32+
RUN subscription-manager refresh
3133

3234
WORKDIR /opt/app-root/bin
3335

jupyter/minimal/ubi9-python-3.12/Dockerfile.konflux.cuda

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
1212
# cuda-base #
1313
####################
1414
FROM ${BASE_IMAGE} AS cuda-base
15+
USER 0
16+
RUN subscription-manager refresh
1517

1618
WORKDIR /opt/app-root/bin
1719

jupyter/minimal/ubi9-python-3.12/Dockerfile.konflux.rocm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
1010
# rocm-base #
1111
####################
1212
FROM ${BASE_IMAGE} AS rocm-base
13+
USER 0
14+
RUN subscription-manager refresh
1315

1416
WORKDIR /opt/app-root/bin
1517

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN cd ./mongodb-cli-mongocli-v${MONGOCLI_VERSION}/ && \
2323
# wheel-cache-base #
2424
####################
2525
FROM ${BASE_IMAGE} AS whl-cache
26+
USER 0
27+
RUN subscription-manager refresh
2628

2729
# hadolint ignore=DL3002
2830
USER root

runtimes/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
1010
# cpu-base #
1111
####################
1212
FROM ${BASE_IMAGE} AS cpu-base
13+
USER 0
14+
RUN subscription-manager refresh
1315

1416
ARG TARGETARCH
1517

runtimes/minimal/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
1010
# cpu-base #
1111
####################
1212
FROM ${BASE_IMAGE} AS cpu-base
13+
USER 0
14+
RUN subscription-manager refresh
1315

1416
WORKDIR /opt/app-root/bin
1517

0 commit comments

Comments
 (0)