Templates and example build for the DSRI OpenShift applications.
Clone this repository:
git clone https://github.com/MaastrichtU-IDS/dsri-openshift-applications.git
cd dsri-openshift-applications
Containers running as non root, without sudo
privileges
for template in $( ls templates-restricted/*.yml ); do oc apply -f ${template} ; done
Containers running as root user.
GPU templates and templates in anyuid folder require the anyuid
service account enabled in your project (to run the container as root user).
Contact us to request
anyuid
privileges if necessary
for template in $( ls templates-anyuid/*.yml ); do oc apply -f ${template} ; done
Containers running as root user
for template in $( ls templates-gpu/*/*.yml ); do oc apply -f ${template} ; done
For VSCode server or filebrowser: check their respective folders.
For JupyterLab: check https://github.com/MaastrichtU-IDS/jupyterlab-on-openshift/
Create app from template file using the CLI:
oc new-app -f templates-datascience/template-jupyterlab-dynamic.yml -p APPLICATION_NAME=jupyterlab-dynamic,PASSWORD=PASSWORD
Create app from existing template in your DSRI project using the CLI:
oc new-app jupyterlab-dynamic -p APPLICATION_NAME=jupyterlab-dynamic,PASSWORD=PASSWORD
Delete your application:
oc delete all --selector app=jupyterlab-dynamic
Replace
jupyterlab-dynamic
by your APPLICATION_NAME
Delete all applications from a template:
oc delete all,secret,configmaps,serviceaccount,rolebinding --selector template=jupyterlab-dynamic
Browse the list of Icons for Templates in the Catalog.
Convert JSON to YAML: https://www.json2yaml.com
See also:
-
OpenShift documentation to generate Template from deployed service
-
Deployment from Jupyter
-
JupyterHub with GitHub OAuth template based on jackfrost373/jupyter-root and https://github.com/jupyter-on-openshift/jupyterhub-quickstart
Contributions are welcome! See the guidelines to contribute 👨💻.