Skip to content

Commit 9b25a91

Browse files
committed
RHAIENG-1277: sync the Dockerfile.konflux.* with the Dockerfile.* from odh-io (#1638)
1 parent 8c4d27c commit 9b25a91

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ WORKDIR /opt/app-root/src
114114
###########################
115115
FROM rocm-jupyter-datascience AS rocm-jupyter-tensorflow
116116

117+
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
117118
ARG DATASCIENCE_SOURCE_CODE=jupyter/datascience/ubi9-python-3.12
118119
ARG TENSORFLOW_SOURCE_CODE=jupyter/rocm/tensorflow/ubi9-python-3.12
119120

@@ -145,6 +146,8 @@ RUN chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \
145146
fix-permissions /opt/app-root -P
146147
USER 1001
147148

149+
COPY ${JUPYTER_REUSABLE_UTILS}/usercustomize.pth ${JUPYTER_REUSABLE_UTILS}/monkey_patch_protobuf_6x.py /opt/app-root/lib/python3.12/site-packages/
150+
148151
WORKDIR /opt/app-root/src
149152

150153
LABEL name="rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9" \

runtimes/rocm-tensorflow/ubi9-python-3.12/Dockerfile.konflux.rocm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/oc
4848
###########################
4949
FROM rocm-base AS rocm-runtime-tensorflow
5050

51+
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
5152
ARG TENSORFLOW_SOURCE_CODE=runtimes/rocm-tensorflow/ubi9-python-3.12
5253

5354
WORKDIR /opt/app-root/bin
@@ -69,6 +70,8 @@ RUN chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \
6970
fix-permissions /opt/app-root -P
7071
USER 1001
7172

73+
COPY ${JUPYTER_REUSABLE_UTILS}/usercustomize.pth ${JUPYTER_REUSABLE_UTILS}/monkey_patch_protobuf_6x.py /opt/app-root/lib/python3.12/site-packages/
74+
7275
WORKDIR /opt/app-root/src
7376

7477
LABEL name="rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9" \

runtimes/tensorflow/ubi9-python-3.12/Dockerfile.konflux.cuda

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/oc
5252
############################
5353
FROM cuda-base AS cuda-runtime-tensorflow
5454

55+
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
5556
ARG TENSORFLOW_SOURCE_CODE=runtimes/tensorflow/ubi9-python-3.12
5657

5758
WORKDIR /opt/app-root/bin
@@ -69,6 +70,8 @@ RUN echo "Installing softwares and packages" && \
6970
chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \
7071
fix-permissions /opt/app-root -P
7172

73+
COPY ${JUPYTER_REUSABLE_UTILS}/usercustomize.pth ${JUPYTER_REUSABLE_UTILS}/monkey_patch_protobuf_6x.py /opt/app-root/lib/python3.12/site-packages/
74+
7275
WORKDIR /opt/app-root/src
7376

7477
LABEL name="rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9" \

0 commit comments

Comments
 (0)