Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions jupyter/minimal/ubi9-python-3.12/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# configuration args #
#########################
ARG BASE_IMAGE
ARG PYLOCK_PATH
ARG PYLOCK_NAME

# External image alias for UBI repository configuration
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
Expand Down Expand Up @@ -66,6 +68,8 @@ FROM cpu-base AS jupyter-minimal

ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
ARG MINIMAL_SOURCE_CODE=jupyter/minimal/ubi9-python-3.12
ARG PYLOCK_PATH
ARG PYLOCK_NAME

LABEL name="odh-notebook-jupyter-minimal-ubi9-python-3.12" \
summary="Minimal Jupyter notebook image for ODH notebooks" \
Expand All @@ -91,15 +95,16 @@ ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"

USER 1001

COPY ${MINIMAL_SOURCE_CODE}/pylock.toml ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
COPY ${MINIMAL_SOURCE_CODE}${PYLOCK_PATH} ./${PYLOCK_NAME}
COPY ${MINIMAL_SOURCE_CODE}/start-notebook.sh .

# Install Python dependencies from requirements.txt file
# Install Python dependencies from pylock file
RUN /bin/bash <<'EOF'
set -Eeuxo pipefail
echo "Installing softwares and packages"
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./${PYLOCK_NAME}
# Disable announcement plugin of jupyterlab
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
Expand Down
11 changes: 8 additions & 3 deletions jupyter/minimal/ubi9-python-3.12/Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG TARGETARCH
# configuration args #
#########################
ARG BASE_IMAGE
ARG PYLOCK_PATH
ARG PYLOCK_NAME

####################
# cuda-base #
Expand Down Expand Up @@ -65,6 +67,8 @@ FROM cuda-base AS cuda-jupyter-minimal

ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
ARG MINIMAL_SOURCE_CODE=jupyter/minimal/ubi9-python-3.12
ARG PYLOCK_PATH
ARG PYLOCK_NAME

LABEL name="odh-notebook-jupyter-cuda-minimal-ubi9-python-3.12" \
summary="Minimal Jupyter CUDA notebook image for ODH notebooks" \
Expand All @@ -90,15 +94,16 @@ ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"

USER 1001

COPY ${MINIMAL_SOURCE_CODE}/pylock.toml ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
COPY ${MINIMAL_SOURCE_CODE}${PYLOCK_PATH} ./${PYLOCK_NAME}
COPY ${MINIMAL_SOURCE_CODE}/start-notebook.sh .

# Install Python dependencies from requirements.txt file
# Install Python dependencies from pylock file
RUN /bin/bash <<'EOF'
set -Eeuxo pipefail
echo "Installing softwares and packages"
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./${PYLOCK_NAME}
# Disable announcement plugin of jupyterlab
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
Expand Down
11 changes: 8 additions & 3 deletions jupyter/minimal/ubi9-python-3.12/Dockerfile.rocm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# configuration args #
#########################
ARG BASE_IMAGE
ARG PYLOCK_PATH
ARG PYLOCK_NAME

####################
# rocm-base #
Expand Down Expand Up @@ -63,6 +65,8 @@ FROM rocm-base AS rocm-jupyter-minimal

ARG JUPYTER_REUSABLE_UTILS=jupyter/utils
ARG MINIMAL_SOURCE_CODE=jupyter/minimal/ubi9-python-3.12
ARG PYLOCK_PATH
ARG PYLOCK_NAME

LABEL name="odh-notebook-jupyter-rocm-minimal-ubi9-python-3.12" \
summary="Minimal Jupyter ROCm notebook image for ODH notebooks" \
Expand All @@ -88,15 +92,16 @@ ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"

USER 1001

COPY ${MINIMAL_SOURCE_CODE}/pylock.toml ${MINIMAL_SOURCE_CODE}/start-notebook.sh ./
COPY ${MINIMAL_SOURCE_CODE}${PYLOCK_PATH} ./${PYLOCK_NAME}
COPY ${MINIMAL_SOURCE_CODE}/start-notebook.sh .

# Install Python dependencies from Pipfile.lock file
# Install Python dependencies from pylock file
RUN /bin/bash <<'EOF'
set -Eeuxo pipefail
echo "Installing softwares and packages"
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./${PYLOCK_NAME}
# Disable announcement plugin of jupyterlab
jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y
Expand Down
2 changes: 2 additions & 0 deletions jupyter/minimal/ubi9-python-3.12/build-args/cpu.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Base Image : c9s with Python 3.12
BASE_IMAGE=quay.io/opendatahub/odh-base-image-cpu-py312-c9s:latest
PYLOCK_PATH=/pylock.toml
PYLOCK_NAME=pylock.toml
2 changes: 2 additions & 0 deletions jupyter/minimal/ubi9-python-3.12/build-args/cuda.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
BASE_IMAGE=quay.io/opendatahub/odh-base-image-cuda-py312-c9s:v12.8
PYLOCK_PATH=/pylock.toml
PYLOCK_NAME=pylock.toml
2 changes: 2 additions & 0 deletions jupyter/minimal/ubi9-python-3.12/build-args/rocm.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
BASE_IMAGE=quay.io/opendatahub/odh-base-image-rocm-py312-c9s:v6.3
PYLOCK_PATH=/pylock.toml
PYLOCK_NAME=pylock.toml
Loading