-
Notifications
You must be signed in to change notification settings - Fork 97
RHOAIENG-28583: Create Runtime Images for Python 3.12 #1333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1c266a1
creating pipeline runtime images for python 3.12
dibryant a82427f
fixup, resolve misplacement of commented-out targets for Jupyter and …
jiridanek 18b213e
fixup, resolve misplacement of commented-out targets for Jupyter and …
jiridanek f2bf059
fixup, resolve misplacement of commented-out targets for Jupyter and …
jiridanek 3602288
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] d4255b5
fixup, resolve misplacement of commented-out targets for Jupyter and …
jiridanek bcf654f
fixup, resolve misplacement of commented-out targets for Jupyter and …
jiridanek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#################### | ||
# base # | ||
#################### | ||
FROM registry.access.redhat.com/ubi9/python-312:latest AS base | ||
|
||
WORKDIR /opt/app-root/bin | ||
|
||
# OS Packages needs to be installed as root | ||
USER 0 | ||
|
||
# Install useful OS packages | ||
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum | ||
|
||
# Other apps and tools installed as default user | ||
USER 1001 | ||
|
||
# Install micropipenv to deploy packages from Pipfile.lock | ||
RUN pip install --no-cache-dir -U "micropipenv[toml]" | ||
|
||
# Install the oc client | ||
RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable/openshift-client-linux.tar.gz \ | ||
-o /tmp/openshift-client-linux.tar.gz && \ | ||
tar -xzvf /tmp/openshift-client-linux.tar.gz oc && \ | ||
rm -f /tmp/openshift-client-linux.tar.gz | ||
|
||
####################### | ||
# runtime-datascience # | ||
####################### | ||
FROM base AS runtime-datascience | ||
|
||
ARG DATASCIENCE_SOURCE_CODE=runtimes/datascience/ubi9-python-3.12 | ||
|
||
LABEL name="odh-notebook-runtime-datascience-ubi9-python-3.12" \ | ||
summary="Runtime data science notebook image for ODH notebooks" \ | ||
description="Runtime data science notebook image with base Python 3.12 builder image based on UBI9 for ODH notebooks" \ | ||
io.k8s.display-name="Runtime data science notebook image for ODH notebooks" \ | ||
io.k8s.description="Runtime data science notebook image with base Python 3.12 builder image based on UBI9 for ODH notebooks" \ | ||
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \ | ||
io.openshift.build.commit.ref="main" \ | ||
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/runtimes/datascience/ubi9-python-3.12" \ | ||
io.openshift.build.image="quay.io/opendatahub/workbench-images:runtime-datascience-ubi9-python-3.12" | ||
|
||
WORKDIR /opt/app-root/bin | ||
|
||
# Install Python packages from Pipfile.lock | ||
COPY ${DATASCIENCE_SOURCE_CODE}/Pipfile.lock ./ | ||
# Copy Elyra dependencies for air-gapped enviroment | ||
COPY ${DATASCIENCE_SOURCE_CODE}/utils ./utils/ | ||
|
||
RUN echo "Installing softwares and packages" && \ | ||
micropipenv install && \ | ||
rm -f ./Pipfile.lock && \ | ||
# Fix permissions to support pip in Openshift environments \ | ||
chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \ | ||
fix-permissions /opt/app-root -P | ||
|
||
WORKDIR /opt/app-root/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[dev-packages] | ||
|
||
[packages] | ||
# Datascience and useful extensions | ||
boto3 = "~=1.37.8" | ||
kafka-python-ng = "~=2.2.3" | ||
matplotlib = "~=3.10.1" | ||
numpy = "~=2.2.3" | ||
pandas = "~=2.2.3" | ||
plotly = "~=6.0.0" | ||
scikit-learn = "~=1.6.1" | ||
scipy = "~=1.15.2" | ||
skl2onnx = "~=1.18.0" | ||
onnxconverter-common = "~=1.13.0" # Required for skl2onnx, as upgraded version is not compatible with protobuf | ||
codeflare-sdk = "~=0.29.0" | ||
|
||
# DB connectors | ||
pymongo = "~=4.11.2" | ||
psycopg = "~=3.2.5" | ||
pyodbc = "~=5.2.0" | ||
mysql-connector-python = "~=9.3.0" | ||
|
||
# This is a comprehensive list of python dependencies that Elyra requires to execute Jupyter notebooks. | ||
ipykernel = "~=6.29.5" | ||
ipython = "~=9.0.1" | ||
ipython-genutils = "~=0.2.0" | ||
jinja2 = "~=3.1.6" | ||
jupyter-client = ">=8.6.3" | ||
jupyter-core = "~=5.7.2" | ||
jiridanek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
MarkupSafe = "~=3.0.2" | ||
minio = "~=7.2.15" | ||
nbclient = "~=0.10.2" | ||
nbconvert = "~=7.16.6" | ||
nbformat = "~=5.10.4" | ||
papermill = "~=2.6.0" | ||
pyzmq = "~=26.2.1" | ||
prompt-toolkit = "~=3.0.50" | ||
requests = "~=2.32.3" | ||
tornado = "~=6.5.1" | ||
traitlets = "~=5.14.3" | ||
urllib3 = "~=2.5.0" | ||
jiridanek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Base packages | ||
setuptools = "==78.1.1" | ||
wheel = "==0.45.1" | ||
|
||
[requires] | ||
python_version = "3.12" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.