Skip to content

Commit 493d11c

Browse files
[CFX-3059] Make tweaks to base image to be sure to use python 3.11 everywhere (#1534)
* [CFX-3059] Make tweaks to base image to be sure to use python 3.11 everywhere * Reconcile dependencies, updated IDs, tags --------- Co-authored-by: svc-harness-git2 <[email protected]>
1 parent 718f758 commit 493d11c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
102 Bytes
Binary file not shown.

public_dropin_notebook_environments/python311_notebook_base/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
5555
# Add any package that will be installed on system level here:
5656
RUN echo "[Python$PYTHON_VERSION] GIT_COMMIT: $GIT_COMMIT" \
5757
&& microdnf update -y \
58-
&& microdnf install -y python$PYTHON_VERSION-$PYTHON_EXACT_VERSION python3-devel-3.9.21 \
58+
&& microdnf install -y python$PYTHON_VERSION-$PYTHON_EXACT_VERSION python$PYTHON_VERSION-devel-$PYTHON_EXACT_VERSION \
5959
gcc-11.5.0 gcc-c++-11.5.0 glib2-devel-2.68.4 libffi-devel-3.4.2 graphviz-2.44.0 python$PYTHON_VERSION-pip \
6060
openblas-0.3.26 python$PYTHON_VERSION-scipy shadow-utils passwd git openssh-server tar gzip unzip zip wget \
6161
java-11-openjdk-headless vim-minimal nano \
@@ -70,7 +70,7 @@ ENV PYTHONUNBUFFERED=1 \
7070
ENV PATH="$VENV_PATH/bin:$PATH" \
7171
PYTHONPATH="/home/notebooks/.ipython/extensions:/home/notebooks/storage"
7272

73-
RUN python3 -m venv ${VENV_PATH} && pip3 install -U pip setuptools
73+
RUN python3.11 -m venv ${VENV_PATH} && pip3 install -U pip setuptools
7474
WORKDIR ${WORKDIR}
7575

7676
# Install git helper binary used for private git authentication in Notebooks/Codepaces
@@ -122,8 +122,8 @@ ARG WORKDIR
122122
ARG VENV_PATH
123123

124124
COPY ./dr_requirements.txt ./agent/requirements-agent.txt ${WORKDIR}/
125-
RUN python3 -m pip install --no-cache-dir -r ${WORKDIR}/dr_requirements.txt \
126-
&& python3 -m pip install --no-cache-dir -r ${WORKDIR}/requirements-agent.txt \
125+
RUN python3.11 -m pip install --no-cache-dir -r ${WORKDIR}/dr_requirements.txt \
126+
&& python3.11 -m pip install --no-cache-dir -r ${WORKDIR}/requirements-agent.txt \
127127
&& rm ${WORKDIR}/dr_requirements.txt \
128128
&& rm ${WORKDIR}/requirements-agent.txt \
129129
&& rm ${VENV_PATH}/share/jupyter/kernels/python3/kernel.json \

public_dropin_notebook_environments/python311_notebook_base/env_info.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "This template environment can be used to create Python 3.11 notebook environments.",
55
"programmingLanguage": "python",
66
"label": "",
7-
"environmentVersionId": "6848b6652081a81af97479b4",
7+
"environmentVersionId": "685c0364fccc7d6048623f7d",
88
"environmentVersionDescription": "",
99
"isPublic": true,
1010
"useCases": [
@@ -14,8 +14,8 @@
1414
"contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_notebook_environments/python311_notebook_base",
1515
"imageRepository": "env-notebook-python311-notebook-base",
1616
"tags": [
17-
"v11.1.0-6848b6652081a81af97479b4",
18-
"6848b6652081a81af97479b4",
19-
"v11.1.0-latest"
17+
"v11.2.0-685c0364fccc7d6048623f7d",
18+
"685c0364fccc7d6048623f7d",
19+
"v11.2.0-latest"
2020
]
2121
}

0 commit comments

Comments
 (0)