Skip to content

Commit e95157b

Browse files
authored
Include elyra package in all data science workbenches (opendatahub-io#58)
* Include elyra package in all data science workbenches - Filter out Pipeline plugin only for local and kfp - Pre-set the kfp-tekton for kfp pipeline support Signed-off-by: Harshad Reddy Nalla <[email protected]> * Point all images label at opendatahub/workbench-images repo Signed-off-by: Harshad Reddy Nalla <[email protected]> --------- Signed-off-by: Harshad Reddy Nalla <[email protected]>
1 parent 00f8460 commit e95157b

File tree

48 files changed

+4300
-3642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4300
-3642
lines changed

Diff for: base/ubi8-python-3.8/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LABEL name="odh-notebook-base-ubi8-python-3.8" \
88
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \
99
io.openshift.build.commit.ref="main" \
1010
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/base/ubi8-python-3.8" \
11-
io.openshift.build.image="quay.io/opendatahub/notebooks:base-ubi8-python-3.8"
11+
io.openshift.build.image="quay.io/opendatahub/workbench-images:base-ubi8-python-3.8"
1212

1313
WORKDIR /opt/app-root/bin
1414

Diff for: base/ubi9-python-3.9/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LABEL name="odh-notebook-base-ubi9-python-3.9" \
88
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \
99
io.openshift.build.commit.ref="main" \
1010
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/base/ubi9-python-3.9" \
11-
io.openshift.build.image="quay.io/opendatahub/notebooks:base-ubi9-python-3.9"
11+
io.openshift.build.image="quay.io/opendatahub/workbench-images:base-ubi9-python-3.9"
1212

1313
WORKDIR /opt/app-root/bin
1414

Diff for: cuda/ubi8-python-3.8/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL name="odh-notebook-cuda-ubi8-python-3.8" \
99
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \
1010
io.openshift.build.commit.ref="main" \
1111
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/cuda/ubi8-python-3.8" \
12-
io.openshift.build.image="quay.io/opendatahub/notebooks:cuda-ubi8-python-3.8"
12+
io.openshift.build.image="quay.io/opendatahub/workbench-images:cuda-ubi8-python-3.8"
1313

1414
# Install CUDA base from:
1515
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.4.2/ubi8/base/Dockerfile

Diff for: cuda/ubi9-python-3.9/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL name="odh-notebook-cuda-ubi9-python-3.9" \
99
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \
1010
io.openshift.build.commit.ref="main" \
1111
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/cuda/ubi9-python-3.9" \
12-
io.openshift.build.image="quay.io/opendatahub/notebooks:cuda-ubi9-python-3.9"
12+
io.openshift.build.image="quay.io/opendatahub/workbench-images:cuda-ubi9-python-3.9"
1313

1414
# Install CUDA base from:
1515
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.8.0/ubi8/base/Dockerfile

Diff for: jupyter/datascience/ubi8-python-3.8/Dockerfile

+18-11
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ LABEL name="odh-notebook-jupyter-datascience-ubi8-python-3.8" \
99
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \
1010
io.openshift.build.commit.ref="main" \
1111
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/jupyter/datascience/ubi8-python-3.8" \
12-
io.openshift.build.image="quay.io/opendatahub/notebooks:jupyter-datascience-ubi8-python-3.8"
12+
io.openshift.build.image="quay.io/opendatahub/workbench-images:jupyter-datascience-ubi8-python-3.8"
13+
14+
WORKDIR /opt/app-root/bin
1315

1416
# Install Python packages and Jupyterlab extensions from Pipfile.lock
1517
COPY Pipfile.lock ./
18+
# Copy Elyra setup to utils so that it's sourced at startup
19+
COPY jupyter_elyra_config.py setup-elyra.sh ./utils/
1620

17-
RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
18-
19-
# Explicitly enable jupyterlab_s3_browser plugin
20-
RUN jupyter serverextension enable --py jupyterlab_s3_browser
21-
22-
# Remove Elyra logo from JupyterLab because this is not a pure Elyra image \
23-
RUN 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
24-
25-
# Fix permissions to support pip in Openshift environments
26-
RUN chmod -R g+w /opt/app-root/lib/python3.8/site-packages && \
21+
RUN echo "Installing softwares and packages" && \
22+
micropipenv install && \
23+
rm -f ./Pipfile.lock && \
24+
# Explicitly enable jupyterlab_s3_browser plugin \
25+
jupyter serverextension enable --py jupyterlab_s3_browser && \
26+
# Remove Elyra logo from JupyterLab because this is not a pure Elyra image \
27+
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 && \
28+
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
29+
sed -i -e "s/Python.*/$(python --version)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
30+
# Fix permissions to support pip in Openshift environments \
31+
chmod -R g+w /opt/app-root/lib/python3.8/site-packages && \
2732
fix-permissions /opt/app-root -P
33+
34+
WORKDIR /opt/app-root/src

Diff for: jupyter/datascience/ubi8-python-3.8/Pipfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ name = "pypi"
77

88
[packages]
99
# Datascience and useful extensions
10+
elyra-pipeline-editor-extension = "~=3.15.0"
11+
elyra-python-editor-extension = "~=3.15.0"
12+
elyra-code-snippet-extension = "~=3.15.0"
13+
kfp-tekton = "<1.6.0"
14+
1015
boto3 = "~=1.26.69"
1116
jupyter-bokeh = "~=3.0.5"
12-
elyra-python-editor-extension = "~=3.14.2"
1317
kafka-python = "~=2.0.2"
1418
matplotlib = "~=3.6.3"
1519
numpy = "~=1.24.1"

0 commit comments

Comments
 (0)