Skip to content

Commit aa5049d

Browse files
paulovmrharshad16
andauthored
RHOAIENG-12535: Setup Jupyter 4 + Elyra environment on RHOAI/ODH (#701)
* RHOAIENG-12535: Setup Jupyter 4 + Elyra environment on RHOAI/ODH * Fix comments * Change odh-elyra version to 4.0.0.dev0 * Update jupyter/trustyai/ubi9-python-3.11 Pipfile * Update lock files * Patch elyra kfp template with latest change for rocm-TensorFlow Signed-off-by: Harshad Reddy Nalla <[email protected]> * Copy utils folder in jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile * Updated odh-elyra from 4.0.0.dev0 to 4.0.0.dev1 --------- Signed-off-by: Harshad Reddy Nalla <[email protected]> Co-authored-by: Harshad Reddy Nalla <[email protected]>
1 parent 99bf5ce commit aa5049d

File tree

16 files changed

+4099
-300
lines changed

16 files changed

+4099
-300
lines changed

jupyter/datascience/ubi9-python-3.11/Dockerfile

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ WORKDIR /opt/app-root/bin
1616
# Install Python packages and Jupyterlab extensions from Pipfile.lock
1717
COPY Pipfile.lock ./
1818

19-
# TO DO: Uncomment this lines when elyra compatibility with jupyterlab 4.2 is done
2019
# Copy Elyra setup to utils so that it's sourced at startup
21-
# COPY setup-elyra.sh ./utils/
20+
COPY setup-elyra.sh ./utils/
2221

2322
RUN echo "Installing softwares and packages" && \
2423
micropipenv install && \
@@ -53,35 +52,17 @@ ENV PATH="$PATH:/opt/mssql-tools18/bin"
5352
# Other apps and tools installed as default user
5453
USER 1001
5554

56-
# TO DO: Uncomment this lines when elyra compatibility with jupyterlab 4.2 is done
5755
# setup path for runtime configuration
58-
# RUN mkdir /opt/app-root/runtimes && \
59-
# # switch to Data Science Pipeline \
60-
# cp utils/pipeline-flow.svg /opt/app-root/lib/python3.11/site-packages/elyra/static/icons/kubeflow.svg && \
61-
# sed -i "s/Kubeflow Pipelines/Data Science/g" /opt/app-root/lib/python3.11/site-packages/elyra/pipeline/runtime_type.py && \
62-
# sed -i "s/Kubeflow Pipelines/Data Science Pipelines/g" /opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/kfp.json && \
63-
# sed -i "s/kubeflow-service/data-science-pipeline-service/g" /opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/kfp.json && \
64-
# # switch to Data Science Pipeline in component catalog \
65-
# DIR_COMPONENT="/opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/local-directory-catalog.json" && \
66-
# FILE_COMPONENT="/opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/local-file-catalog.json" && \
67-
# URL_COMPONENT="/opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/url-catalog.json" && \
68-
# tmp=$(mktemp) && \
69-
# jq '.properties.metadata.properties.runtime_type = input' $DIR_COMPONENT utils/component_runtime.json > "$tmp" && mv "$tmp" $DIR_COMPONENT && \
70-
# jq '.properties.metadata.properties.runtime_type = input' $FILE_COMPONENT utils/component_runtime.json > "$tmp" && mv "$tmp" $FILE_COMPONENT && \
71-
# jq '.properties.metadata.properties.runtime_type = input' $URL_COMPONENT utils/component_runtime.json > "$tmp" && mv "$tmp" $URL_COMPONENT && \
72-
# sed -i "s/metadata.metadata.runtime_type/\"DATA_SCIENCE_PIPELINES\"/g" /opt/app-root/share/jupyter/labextensions/@elyra/pipeline-editor-extension/static/lib_index_js.*.js && \
73-
# # Remove Elyra logo from JupyterLab because this is not a pure Elyra image \
74-
# sed -i 's/widget\.id === \x27jp-MainLogo\x27/widget\.id === \x27jp-MainLogo\x27 \&\& false/' /opt/app-root/share/jupyter/labextensions/@elyra/theme-extension/static/lib_index_js.*.js && \
75-
# # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
76-
RUN sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
77-
# TO DO: Uncomment this lines when elyra compatibility with jupyterlab 4.2 is done
78-
# # Remove default Elyra runtime-images \
79-
# rm /opt/app-root/share/jupyter/metadata/runtime-images/*.json && \
80-
# # Fix permissions to support pip in Openshift environments \
56+
RUN mkdir /opt/app-root/runtimes && \
57+
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
58+
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
59+
# Remove default Elyra runtime-images \
60+
rm /opt/app-root/share/jupyter/metadata/runtime-images/*.json && \
61+
# Fix permissions to support pip in Openshift environments \
8162
chmod -R g+w /opt/app-root/lib/python3.11/site-packages && \
8263
fix-permissions /opt/app-root -P
8364

84-
# # Copy Elyra runtime-images definitions and set the version
85-
# COPY runtime-images/ /opt/app-root/share/jupyter/metadata/runtime-images/
65+
# Copy Elyra runtime-images definitions and set the version
66+
COPY runtime-images/ /opt/app-root/share/jupyter/metadata/runtime-images/
8667

8768
WORKDIR /opt/app-root/src

jupyter/datascience/ubi9-python-3.11/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mysql-connector-python = "~=9.0.0"
2828

2929
# JupyterLab packages
3030

31-
#odh-elyra = ">=3.16.7" # For the phase 1, exclude elyra installation. Till this Jira ticket is resolved. https://issues.redhat.com/browse/RHOAIENG-10143
31+
odh-elyra = "==4.0.0.dev1"
3232

3333
jupyterlab = "~=4.2.4"
3434
jupyter-bokeh = "~=4.0.5"

jupyter/datascience/ubi9-python-3.11/Pipfile.lock

Lines changed: 641 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jupyter/pytorch/ubi9-python-3.11/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mysql-connector-python = "~=9.0.0"
3838

3939
# JupyterLab packages
4040

41-
#odh-elyra = ">=3.16.7" # For the phase 1, exclude elyra installation. Till this Jira ticket is resolved. https://issues.redhat.com/browse/RHOAIENG-10143
41+
odh-elyra = "==4.0.0.dev1"
4242

4343
jupyterlab = "~=4.2.4"
4444
jupyter-bokeh = "~=4.0.5"

0 commit comments

Comments
 (0)