@@ -15,8 +15,10 @@ WORKDIR /opt/app-root/bin
1515
1616# Install Python packages and Jupyterlab extensions from Pipfile.lock
1717COPY Pipfile.lock ./
18+
19+ # TO DO: Uncomment this lines when elyra compatibility with jupyterlab 4.2 is done
1820# Copy Elyra setup to utils so that it's sourced at startup
19- COPY setup-elyra.sh ./utils/
21+ # COPY setup-elyra.sh ./utils/
2022
2123RUN echo "Installing softwares and packages" && \
2224 micropipenv install && \
@@ -51,33 +53,35 @@ ENV PATH="$PATH:/opt/mssql-tools18/bin"
5153# Other apps and tools installed as default user
5254USER 1001
5355
56+ # TO DO: Uncomment this lines when elyra compatibility with jupyterlab 4.2 is done
5457# setup path for runtime configuration
55- RUN mkdir /opt/app-root/runtimes && \
56- # switch to Data Science Pipeline \
57- cp utils/pipeline-flow.svg /opt/app-root/lib/python3.11/site-packages/elyra/static/icons/kubeflow.svg && \
58- sed -i "s/Kubeflow Pipelines/Data Science/g" /opt/app-root/lib/python3.11/site-packages/elyra/pipeline/runtime_type.py && \
59- sed -i "s/Kubeflow Pipelines/Data Science Pipelines/g" /opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/kfp.json && \
60- sed -i "s/kubeflow-service/data-science-pipeline-service/g" /opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/kfp.json && \
61- # switch to Data Science Pipeline in component catalog \
62- DIR_COMPONENT="/opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/local-directory-catalog.json" && \
63- FILE_COMPONENT="/opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/local-file-catalog.json" && \
64- URL_COMPONENT="/opt/app-root/lib/python3.11/site-packages/elyra/metadata/schemas/url-catalog.json" && \
65- tmp=$(mktemp) && \
66- jq '.properties.metadata.properties.runtime_type = input' $DIR_COMPONENT utils/component_runtime.json > "$tmp" && mv "$tmp" $DIR_COMPONENT && \
67- jq '.properties.metadata.properties.runtime_type = input' $FILE_COMPONENT utils/component_runtime.json > "$tmp" && mv "$tmp" $FILE_COMPONENT && \
68- jq '.properties.metadata.properties.runtime_type = input' $URL_COMPONENT utils/component_runtime.json > "$tmp" && mv "$tmp" $URL_COMPONENT && \
69- 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 && \
70- # Remove Elyra logo from JupyterLab because this is not a pure Elyra image \
71- sed -i 's/widget\. id === \x 27jp-MainLogo\x 27/widget\. id === \x 27jp-MainLogo\x 27 \&\& false/' /opt/app-root/share/jupyter/labextensions/@elyra/theme-extension/static/lib_index_js.*.js && \
72- # Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
73- sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\" ,/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
74- # Remove default Elyra runtime-images \
75- rm /opt/app-root/share/jupyter/metadata/runtime-images/*.json && \
76- # Fix permissions to support pip in Openshift environments \
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 \
7781 chmod -R g+w /opt/app-root/lib/python3.11/site-packages && \
7882 fix-permissions /opt/app-root -P
7983
80- # Copy Elyra runtime-images definitions and set the version
81- COPY runtime-images/ /opt/app-root/share/jupyter/metadata/runtime-images/
84+ # # Copy Elyra runtime-images definitions and set the version
85+ # COPY runtime-images/ /opt/app-root/share/jupyter/metadata/runtime-images/
8286
8387WORKDIR /opt/app-root/src
0 commit comments