Skip to content

Commit 60b527e

Browse files
committed
yyy
1 parent 5eca96f commit 60b527e

File tree

35 files changed

+105
-35
lines changed

35 files changed

+105
-35
lines changed

codeserver/ubi9-python-3.11/Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ COPY ${CODESERVER_SOURCE_CODE}/requirements.txt ./
139139

140140
# Install packages and cleanup
141141
RUN echo "Installing softwares and packages" && \
142-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
142+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
143+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
144+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
143145
# Fix permissions to support pip in Openshift environments \
144146
chmod -R g+w /opt/app-root/lib/python3.11/site-packages && \
145147
fix-permissions /opt/app-root -P

codeserver/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ COPY ${CODESERVER_SOURCE_CODE}/requirements.txt ./
139139

140140
# Install packages and cleanup
141141
RUN echo "Installing softwares and packages" && \
142-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
142+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
143+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
144+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
143145
# Fix permissions to support pip in Openshift environments \
144146
chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \
145147
fix-permissions /opt/app-root -P

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ COPY ${DATASCIENCE_SOURCE_CODE}/requirements.txt ./
107107
COPY ${DATASCIENCE_SOURCE_CODE}/setup-elyra.sh ${DATASCIENCE_SOURCE_CODE}/utils ./utils/
108108

109109
RUN echo "Installing softwares and packages" && \
110-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
110+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
111+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
112+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
111113
# setup path for runtime configuration
112114
mkdir /opt/app-root/runtimes && \
113115
mkdir /opt/app-root/pipeline-runtimes && \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ COPY ${DATASCIENCE_SOURCE_CODE}/requirements.txt ./
107107
COPY ${DATASCIENCE_SOURCE_CODE}/setup-elyra.sh ${DATASCIENCE_SOURCE_CODE}/utils ./utils/
108108

109109
RUN echo "Installing softwares and packages" && \
110-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
110+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
111+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
112+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
111113
# setup path for runtime configuration
112114
mkdir /opt/app-root/runtimes && \
113115
mkdir /opt/app-root/pipeline-runtimes && \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ COPY ${MINIMAL_SOURCE_CODE}/requirements.txt ${MINIMAL_SOURCE_CODE}/start-notebo
5858

5959
# Install Python dependencies from requirements.txt file
6060
RUN echo "Installing softwares and packages" && \
61-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
61+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
62+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
63+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
6264
# Disable announcement plugin of jupyterlab \
6365
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
6466
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ COPY ${MINIMAL_SOURCE_CODE}/requirements.txt ${MINIMAL_SOURCE_CODE}/start-notebo
186186

187187
# Install Python dependencies from requirements.txt file
188188
RUN echo "Installing softwares and packages" && \
189-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
189+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
190+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
191+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
190192
# Disable announcement plugin of jupyterlab \
191193
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
192194
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ COPY ${MINIMAL_SOURCE_CODE}/requirements.txt ${MINIMAL_SOURCE_CODE}/start-notebo
9292

9393
# Install Python dependencies from requirements.txt file
9494
RUN echo "Installing softwares and packages" && \
95-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
95+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
96+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
97+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
9698
# Disable announcement plugin of jupyterlab \
9799
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
98100
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ COPY ${MINIMAL_SOURCE_CODE}/requirements.txt ${MINIMAL_SOURCE_CODE}/start-notebo
5858

5959
# Install Python dependencies from requirements.txt file
6060
RUN echo "Installing softwares and packages" && \
61-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
61+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
62+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
63+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
6264
# Disable announcement plugin of jupyterlab \
6365
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
6466
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ COPY ${MINIMAL_SOURCE_CODE}/requirements.txt ${MINIMAL_SOURCE_CODE}/start-notebo
160160

161161
# Install Python dependencies from requirements.txt file
162162
RUN echo "Installing softwares and packages" && \
163-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
163+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
164+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
165+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
164166
# Disable announcement plugin of jupyterlab \
165167
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
166168
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ COPY ${MINIMAL_SOURCE_CODE}/requirements.txt ${MINIMAL_SOURCE_CODE}/start-notebo
9292

9393
# Install Python dependencies from Pipfile.lock file
9494
RUN echo "Installing softwares and packages" && \
95-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --require-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
95+
# First run may download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
96+
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
97+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
9698
# Disable announcement plugin of jupyterlab \
9799
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
98100
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \

0 commit comments

Comments
 (0)