Skip to content

Commit d2fcf92

Browse files
committed
Install PDF deps where missing in 3.12 builds
As requested during code review: #1260
1 parent db1a1ce commit d2fcf92

File tree

6 files changed

+59
-11
lines changed

6 files changed

+59
-11
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ WORKDIR /opt/app-root/bin
4949
COPY ${JUPYTER_REUSABLE_UTILS} utils/
5050
COPY ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
5151

52+
USER 0
53+
54+
# Dependencies for PDF export
55+
RUN ./utils/install_pdf_deps.sh
56+
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
57+
58+
USER 1001
59+
5260
WORKDIR /opt/app-root/src
5361

5462
ENTRYPOINT ["start-notebook.sh"]

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/oc
2626
####################
2727
# jupyter-minimal #
2828
####################
29-
FROM base AS jupyter-minimal
29+
FROM base AS jupyter-minimal
3030

3131
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
3232
ARG MINIMAL_SOURCE_CODE=jupyter/minimal/ubi9-python-3.12
@@ -45,6 +45,14 @@ WORKDIR /opt/app-root/bin
4545

4646
COPY ${JUPYTER_REUSABLE_UTILS} utils/
4747

48+
USER 0
49+
50+
# Dependencies for PDF export
51+
RUN ./utils/install_pdf_deps.sh
52+
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
53+
54+
USER 1001
55+
4856
COPY ${MINIMAL_SOURCE_CODE}/Pipfile.lock ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
4957

5058
# Install Python dependencies from Pipfile.lock file
@@ -60,7 +68,7 @@ RUN echo "Installing softwares and packages" && \
6068
fix-permissions /opt/app-root -P && \
6169
# Apply JupyterLab addons \
6270
/opt/app-root/bin/utils/addons/apply.sh
63-
71+
6472
WORKDIR /opt/app-root/src
6573

66-
ENTRYPOINT ["start-notebook.sh"]
74+
ENTRYPOINT ["start-notebook.sh"]

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ RUN yum install -y \
135135
${NV_CUDNN_PACKAGE_DEV} \
136136
&& yum clean all \
137137
&& rm -rf /var/cache/yum/*
138-
138+
139139
# Set this flag so that libraries can find the location of CUDA
140140
ENV XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/local/cuda
141141

@@ -146,7 +146,7 @@ WORKDIR /opt/app-root/src
146146
#########################
147147
# cuda-jupyter-minimal #
148148
#########################
149-
FROM cuda-base AS cuda-jupyter-minimal
149+
FROM cuda-base AS cuda-jupyter-minimal
150150

151151
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
152152
ARG MINIMAL_SOURCE_CODE=jupyter/minimal/ubi9-python-3.12
@@ -165,6 +165,14 @@ WORKDIR /opt/app-root/bin
165165

166166
COPY ${JUPYTER_REUSABLE_UTILS} utils/
167167

168+
USER 0
169+
170+
# Dependencies for PDF export
171+
RUN ./utils/install_pdf_deps.sh
172+
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
173+
174+
USER 1001
175+
168176
COPY ${MINIMAL_SOURCE_CODE}/Pipfile.lock ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
169177

170178
# Install Python dependencies from Pipfile.lock file
@@ -180,7 +188,7 @@ RUN echo "Installing softwares and packages" && \
180188
fix-permissions /opt/app-root -P && \
181189
# Apply JupyterLab addons \
182190
/opt/app-root/bin/utils/addons/apply.sh
183-
191+
184192
WORKDIR /opt/app-root/src
185193

186-
ENTRYPOINT ["start-notebook.sh"]
194+
ENTRYPOINT ["start-notebook.sh"]

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ARG AMDGPU_VERSION=6.2.4
3838
# Install the ROCm rpms
3939
# ref: https://github.com/ROCm/ROCm-docker/blob/master/dev/Dockerfile-centos-7-complete
4040
# Note: Based on 6.2 above new package mivisionx is a pre-requistes, which bring in more dependent packages
41-
# so we are only installing meta packages of rocm
41+
# so we are only installing meta packages of rocm
4242
# ref: https://rocm.docs.amd.com/projects/install-on-linux/en/develop/reference/package-manager-integration.html#packages-in-rocm-programming-models
4343
RUN echo "[ROCm]" > /etc/yum.repos.d/rocm.repo && \
4444
echo "name=ROCm" >> /etc/yum.repos.d/rocm.repo && \
@@ -60,7 +60,7 @@ WORKDIR /opt/app-root/src
6060
########################
6161
# rocm-jupyter-minimal #
6262
########################
63-
FROM rocm-base AS rocm-jupyter-minimal
63+
FROM rocm-base AS rocm-jupyter-minimal
6464

6565
ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
6666
ARG MINIMAL_SOURCE_CODE=jupyter/minimal/ubi9-python-3.12
@@ -79,6 +79,14 @@ WORKDIR /opt/app-root/bin
7979

8080
COPY ${JUPYTER_REUSABLE_UTILS} utils/
8181

82+
USER 0
83+
84+
# Dependencies for PDF export
85+
RUN ./utils/install_pdf_deps.sh
86+
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
87+
88+
USER 1001
89+
8290
COPY ${MINIMAL_SOURCE_CODE}/Pipfile.lock ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
8391

8492
# Install Python dependencies from Pipfile.lock file
@@ -94,7 +102,7 @@ RUN echo "Installing softwares and packages" && \
94102
fix-permissions /opt/app-root -P && \
95103
# Apply JupyterLab addons \
96104
/opt/app-root/bin/utils/addons/apply.sh
97-
105+
98106
WORKDIR /opt/app-root/src
99107

100-
ENTRYPOINT ["start-notebook.sh"]
108+
ENTRYPOINT ["start-notebook.sh"]

jupyter/pytorch/ubi9-python-3.12/Dockerfile.cuda

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ COPY ${JUPYTER_REUSABLE_UTILS} utils/
170170

171171
COPY ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
172172

173+
USER 0
174+
175+
# Dependencies for PDF export
176+
RUN ./utils/install_pdf_deps.sh
177+
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
178+
179+
USER 1001
180+
173181
WORKDIR /opt/app-root/src
174182

175183
ENTRYPOINT ["start-notebook.sh"]

jupyter/tensorflow/ubi9-python-3.12/Dockerfile.cuda

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ COPY ${JUPYTER_REUSABLE_UTILS} utils/
170170

171171
COPY ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
172172

173+
USER 0
174+
175+
# Dependencies for PDF export
176+
RUN ./utils/install_pdf_deps.sh
177+
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
178+
179+
USER 1001
180+
173181
WORKDIR /opt/app-root/src
174182

175183
ENTRYPOINT ["start-notebook.sh"]

0 commit comments

Comments
 (0)