File tree Expand file tree Collapse file tree 8 files changed +38
-46
lines changed
datascience/ubi9-python-3.9
tensorflow/ubi9-python-3.9
tensorflow/ubi9-python-3.9 Expand file tree Collapse file tree 8 files changed +38
-46
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ COPY setup-elyra.sh ./utils/
20
20
21
21
RUN echo "Installing softwares and packages" && \
22
22
micropipenv install && \
23
- rm -f ./Pipfile.lock
23
+ rm -f ./Pipfile.lock && \
24
+ # Fix permissions to support pip in Openshift environments \
25
+ chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
26
+ fix-permissions /opt/app-root -P
24
27
25
28
COPY utils ./utils/
26
29
Original file line number Diff line number Diff line change @@ -18,14 +18,12 @@ COPY utils utils/
18
18
COPY Pipfile.lock start-notebook.sh ./
19
19
20
20
# Install Python dependencies from Pipfile.lock file
21
- RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
22
-
23
- # Disable announcement plugin of jupyterlab
24
- RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
25
-
26
- # Fix permissions to support pip in Openshift environments
27
- RUN chmod -R g+w /opt/app-root/lib/python3.8/site-packages && \
28
- fix-permissions /opt/app-root -P
21
+ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock && \
22
+ # Disable announcement plugin of jupyterlab \
23
+ jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
24
+ # Fix permissions to support pip in Openshift environments \
25
+ chmod -R g+w /opt/app-root/lib/python3.8/site-packages && \
26
+ fix-permissions /opt/app-root -P
29
27
30
28
WORKDIR /opt/app-root/src
31
29
Original file line number Diff line number Diff line change @@ -18,14 +18,12 @@ COPY utils utils/
18
18
COPY Pipfile.lock start-notebook.sh ./
19
19
20
20
# Install Python dependencies from Pipfile.lock file
21
- RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
22
-
23
- # Disable announcement plugin of jupyterlab
24
- RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
25
-
26
- # Fix permissions to support pip in Openshift environments
27
- RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
28
- fix-permissions /opt/app-root -P
21
+ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock && \
22
+ # Disable announcement plugin of jupyterlab \
23
+ jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
24
+ # Fix permissions to support pip in Openshift environments \
25
+ chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
26
+ fix-permissions /opt/app-root -P
29
27
30
28
WORKDIR /opt/app-root/src
31
29
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ RUN echo "Installing softwares and packages" && \
20
20
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
21
21
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
22
22
# Disable announcement plugin of jupyterlab \
23
- jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
24
-
25
- # Fix permissions to support pip in Openshift environments
26
- RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
23
+ jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
24
+ # Fix permissions to support pip in Openshift environments \
25
+ chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
27
26
fix-permissions /opt/app-root -P
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./P
22
22
rm ./de-vendor-torch.sh && \
23
23
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
24
24
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
25
- # Disable announcement plugin of jupyterlab
25
+ # Disable announcement plugin of jupyterlab \
26
26
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
27
- # Fix permissions to support pip in Openshift environments
27
+ # Fix permissions to support pip in Openshift environments \
28
28
chmod -R g+w /opt/app-root/lib/python3.9/site-packages && fix-permissions /opt/app-root -P
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ LABEL name="odh-notebook-jupyter-rocm-tensorflow-ubi9-python-3.9" \
15
15
COPY Pipfile.lock ./
16
16
17
17
RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock && \
18
- # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
18
+ # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
19
19
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
20
- # Disable announcement plugin of jupyterlab
20
+ # Disable announcement plugin of jupyterlab \
21
21
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
22
- # Fix permissions to support pip in Openshift environments
22
+ # Fix permissions to support pip in Openshift environments \
23
23
chmod -R g+w /opt/app-root/lib/python3.9/site-packages && fix-permissions /opt/app-root -P
Original file line number Diff line number Diff line change @@ -19,14 +19,11 @@ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./P
19
19
20
20
# Temporary:Workaround for fixing the kfp-kubernetes 1.0.0 for elyra pipeline execution
21
21
# TODO: Remove this patch once the issue is fixed with kfp-kubernetes upgrade.
22
- RUN patch /opt/app-root/lib/python3.9/site-packages/elyra/templates/kubeflow/v2/python_dsl_template.jinja2 -i utils/python_dsl_template.patch
23
-
24
- # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
25
- RUN sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json
26
-
27
- # Disable announcement plugin of jupyterlab
28
- RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
29
-
30
- # Fix permissions to support pip in Openshift environments
31
- RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
22
+ RUN patch /opt/app-root/lib/python3.9/site-packages/elyra/templates/kubeflow/v2/python_dsl_template.jinja2 -i utils/python_dsl_template.patch && \
23
+ # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
24
+ sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
25
+ # Disable announcement plugin of jupyterlab \
26
+ jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
27
+ # Fix permissions to support pip in Openshift environments \
28
+ chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
32
29
fix-permissions /opt/app-root -P
Original file line number Diff line number Diff line change @@ -23,14 +23,11 @@ USER 1001
23
23
# Install Python packages and Jupyterlab extensions from Pipfile.lock
24
24
COPY Pipfile.lock ./
25
25
26
- RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
27
-
28
- # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
29
- RUN sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json
30
-
31
- # Disable announcement plugin of jupyterlab
32
- RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
33
-
34
- # Fix permissions to support pip in Openshift environments
35
- RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
26
+ RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock && \
27
+ # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
28
+ sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
29
+ # Disable announcement plugin of jupyterlab \
30
+ jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
31
+ # Fix permissions to support pip in Openshift environments \
32
+ chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
36
33
fix-permissions /opt/app-root -P
You can’t perform that action at this time.
0 commit comments