https://github.com/maastrichtu-ids/dsri-openshift-applications
🔭 DEPRECATED - Applications for the Data Science Research Infrastructure OpenShift cluster at Maastricht University
https://github.com/maastrichtu-ids/dsri-openshift-applications
data-science data-science-research dsri openshift
Last synced: 6 months ago
JSON representation
🔭 DEPRECATED - Applications for the Data Science Research Infrastructure OpenShift cluster at Maastricht University
- Host: GitHub
- URL: https://github.com/maastrichtu-ids/dsri-openshift-applications
- Owner: MaastrichtU-IDS
- License: mit
- Created: 2020-10-15T17:26:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-03T16:26:28.000Z (over 5 years ago)
- Last Synced: 2025-04-08T00:41:40.661Z (about 1 year ago)
- Topics: data-science, data-science-research, dsri, openshift
- Language: Dockerfile
- Homepage: https://maastrichtu-ids.github.io/dsri-documentation
- Size: 270 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
**⚠️ OBSOLETE REPOSITORY**: most templates for OKD4 have been moved and are now maintained in https://github.com/MaastrichtU-IDS/dsri-documentation/tree/master/applications
Templates and example build for the DSRI OpenShift applications.
## Upload templates to your project
Clone this repository:
```bash
git clone https://github.com/MaastrichtU-IDS/dsri-openshift-applications.git
cd dsri-openshift-applications
```
### Data science templates
Containers running as non root, without `sudo` privileges
```bash
for template in $( ls templates-restricted/*.yml ); do oc apply -f ${template} ; done
```
### Anyuid templates
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](https://maastrichtu-ids.github.io/dsri-documentation/help) `anyuid` privileges if necessary
```bash
for template in $( ls templates-anyuid/*.yml ); do oc apply -f ${template} ; done
```
### GPU templates
Containers running as root user
```bash
for template in $( ls templates-gpu/*/*.yml ); do oc apply -f ${template} ; done
```
## Create custom Docker image
For **VSCode server** or filebrowser: check their respective folders.
For **JupyterLab**: check https://github.com/MaastrichtU-IDS/jupyterlab-on-openshift/
## Create app from template using command
Create app from template file using the CLI:
```bash
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:
```bash
oc new-app jupyterlab-dynamic -p APPLICATION_NAME=jupyterlab-dynamic,PASSWORD=PASSWORD
```
Delete your application:
```bash
oc delete all --selector app=jupyterlab-dynamic
```
> Replace `jupyterlab-dynamic` by your **APPLICATION_NAME**
Delete all applications from a template:
```bash
oc delete all,secret,configmaps,serviceaccount,rolebinding --selector template=jupyterlab-dynamic
```
## Useful links
[Browse the list of Icons](https://rawgit.com/openshift/openshift-logos-icon/master/demo.html) for Templates in the Catalog.
Convert JSON to YAML: https://www.json2yaml.com
**See also**:
* [OpenShift documentation to generate Template](https://docs.openshift.com/container-platform/3.11/dev_guide/templates.html#export-as-template) from deployed service
* Deployment from Jupyter
* https://github.com/jupyter/docker-stacks/tree/master/examples/source-to-image
* See [their template](https://raw.githubusercontent.com/jupyter/docker-stacks/master/examples/source-to-image/templates.json)
* JupyterHub with GitHub OAuth template based on [jackfrost373/jupyter-root](https://github.com/jackfrost373/jupyter-root) and https://github.com/jupyter-on-openshift/jupyterhub-quickstart
## Contribute
Contributions are welcome! See the [guidelines to contribute 👨💻](/CONTRIBUTING.md).