Based on this article, a custom Jupyter stack specification used to deploy on OpenShift (using S2I).
- Create Image Stream
- oc create -f https://raw.githubusercontent.com/jupyter-on-openshift/jupyter-notebooks/master/build-configs/s2i-minimal-notebook.json
- WAIT for image to download! (Watch build logs)
- Create Build
- oc new-build --name spathe-notebook-build --image-stream s2i-minimal-notebook:3.6 --code https://github.com/mkm29/jupyter-notebooks --strategy=source
- WAIT for image to download! (Watch build logs)
- Start the build, either:
- oc set env bc/spathe-notebook-build JUPYTER_ENABLE_LAB=true
- oc set env bc/spathe-notebook-build JUPYTER_NOTEBOOK_PASSWORD=spathe
- oc start-build bc/spathe-notebook-build
- Create app
- oc new-app spathe-notebook-build --name spathe-notebook-app
- Expose
- oc expose svc/spathe-notebook-app
- Set Environment Variables
- oc set env dc/spathe-notebook-app JUPYTER_NOTEBOOK_PASSWORD=spathe
- oc set env dc/spathe-notebook-app JUPYTER_NOTEBOOK_INTERFACE=lab
- Enable Jupyter extensions in the s2i assemble script:
- jupyter labextension install @jupyter-widgets/jupyterlab-manager@^1.0.1 --no-build
- jupyter labextension install jupyterlab-dash@0.1.0-alpha.3 --no-build
- jupyter labextension install jupyterlab_bokeh@1.0.0 --no-build
- jupyter labextension install @lckr/jupyterlab_variableinspector --no-build
- jupyter lab build