Skip to content

Commit 8c58130

Browse files
author
Liav Weiss (EXT-Nokia)
committed
Upgrade Python to 3.12 and NodeJS to 24 - example-notebook-servers/
Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
1 parent 8c44fd7 commit 8c58130

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

components/example-notebook-servers/codeserver-python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARG CODESERVER_JUPYTER_VERSION=2024.11.0
1818
ARG IPYKERNEL_VERSION=6.29.5
1919
ARG MINIFORGE_VERSION=24.11.3-0
2020
ARG PIP_VERSION=24.3.1
21-
ARG PYTHON_VERSION=3.11.11
21+
ARG PYTHON_VERSION=3.12.6
2222

2323
# setup environment for conda
2424
ENV CONDA_DIR /opt/conda

components/example-notebook-servers/jupyter-tensorflow-cuda/Dockerfile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ ARG TARGETARCH
1414
# when updating past that version, either remove all TensorRT related packages,
1515
# or investigate if there is a way to keep TensorRT support
1616
ARG TENSORFLOW_VERSION=2.17.1
17-
ARG TENSORRT_VERSION=8.6.1.post1
18-
ARG TENSORRT_LIBS_VERSION=8.6.1
19-
ARG TENSORRT_BINDINGS_VERSION=8.6.1
17+
ARG TENSORRT_VERSION=10.2.0
18+
ARG TENSORRT_LIBS_VERSION=10.2.0
19+
ARG TENSORRT_BINDINGS_VERSION=10.2.0
2020

2121
# nvidia container toolkit
2222
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html
@@ -26,26 +26,24 @@ ENV NVIDIA_REQUIRE_CUDA "cuda>=12.3"
2626

2727
# install - tensorflow
2828
# - About '[and-cuda]' option: https://github.com/tensorflow/tensorflow/blob/v2.17.1/tensorflow/tools/pip_package/setup.py#L153-L164
29-
# - TODO: when updating TensorRT, you might need to change `tensorrt`, `tensorrt-libs`, and `tensorrt-bindings`
30-
# to `tensorrt-cu12`, `tensorrt-cu12-libs`, and `tensorrt-cu12-bindings` respectively
3129
RUN python3 -m pip install --quiet --no-cache-dir --extra-index-url https://pypi.nvidia.com \
3230
tensorflow[and-cuda]==${TENSORFLOW_VERSION} \
33-
tensorrt==${TENSORRT_VERSION} \
34-
tensorrt-libs==${TENSORRT_LIBS_VERSION} \
35-
tensorrt-bindings==${TENSORRT_BINDINGS_VERSION}
31+
tensorrt-cu12==${TENSORRT_VERSION} \
32+
tensorrt-cu12-libs==${TENSORRT_LIBS_VERSION} \
33+
tensorrt-cu12-bindings==${TENSORRT_BINDINGS_VERSION}
3634

3735
# create symlinks for TensorRT libs
3836
# - https://github.com/tensorflow/tensorflow/issues/61986#issuecomment-1880489731
3937
# - We are creating symlinks for the following libs, as this is where TF looks for them:
40-
# - libnvinfer.so.8.6.1 -> libnvinfer.so.8
41-
# - libnvinfer_plugin.so.8.6.1 -> libnvinfer_plugin.so.8
42-
ENV PYTHON_SITE_PACKAGES /opt/conda/lib/python3.11/site-packages
38+
# - libnvinfer.so.10.2.0 -> libnvinfer.so.10
39+
# - libnvinfer_plugin.so.10.2.0 -> libnvinfer_plugin.so.10
40+
ENV PYTHON_SITE_PACKAGES /opt/conda/lib/python3.12/site-packages
4341
ENV TENSORRT_LIBS ${PYTHON_SITE_PACKAGES}/tensorrt_libs
4442
RUN ln -s ${TENSORRT_LIBS}/libnvinfer.so.${TENSORRT_LIBS_VERSION%%.*} ${TENSORRT_LIBS}/libnvinfer.so.${TENSORRT_LIBS_VERSION} \
4543
&& ln -s ${TENSORRT_LIBS}/libnvinfer_plugin.so.${TENSORRT_LIBS_VERSION%%.*} ${TENSORRT_LIBS}/libnvinfer_plugin.so.${TENSORRT_LIBS_VERSION}
4644

4745
# envs - cudnn, tensorrt
48-
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}/nvidia/cudnn/lib:${TENSORRT_LIBS}
46+
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${TENSORRT_LIBS}
4947

5048
# install - requirements.txt
5149
COPY --chown=${NB_USER}:${NB_GID} requirements.txt /tmp

components/example-notebook-servers/jupyter/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ USER root
1515
ARG JUPYTERLAB_VERSION=4.3.5
1616
ARG JUPYTER_VERSION=7.3.2
1717
ARG MINIFORGE_VERSION=24.11.3-0
18-
ARG NODE_MAJOR_VERSION=20
18+
ARG NODE_MAJOR_VERSION=24
1919
ARG PIP_VERSION=24.3.1
20-
ARG PYTHON_VERSION=3.11.11
20+
ARG PYTHON_VERSION=3.12.6
2121

2222
# install -- node.js
2323
RUN export DEBIAN_FRONTEND=noninteractive \

components/example-notebook-servers/rstudio/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARG TARGETARCH
1010
# args - software versions (python)
1111
ARG MINIFORGE_VERSION=24.11.3-0
1212
ARG PIP_VERSION=24.3.1
13-
ARG PYTHON_VERSION=3.11.11
13+
ARG PYTHON_VERSION=3.12.6
1414

1515
# args - software versions (R)
1616
# - rstudio: https://dailies.rstudio.com/release/

0 commit comments

Comments
 (0)