Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
doku:jupyterhub [2022/07/19 10:44] – [Start a new Jupyter server] katrin | doku:jupyterhub [2023/02/27 09:03] – [BYOI: Bring your own (Singularity) Image] katrin | ||
---|---|---|---|
Line 76: | Line 76: | ||
A good starting point is to have a look at the official JupyterHub Docker Stacks Images @ [[https:// | A good starting point is to have a look at the official JupyterHub Docker Stacks Images @ [[https:// | ||
- | In a nutshell | + | In a nutshell |
+ | * jupyterhub==3.0.0 - This package pulls in all the necessary dependencies to start a jupyter server | ||
+ | * git+https://github.com/katringoogoo/ | ||
- | Optionally: If your image needs to run hooks before starting | + | In addition we also install |
+ | * jupyterlab-system-monitor | ||
+ | * jupyterlab-git | ||
+ | * jupyterlab-widgets | ||
- | Unfortunately the batchspawner package has not been updated yet so in order to restore this functionality we are using an (optional) startscript called `vsc-singleuser.sh`. All it does is to run the hooks from `/usr/local/bin/before-notebook.d` before finally executing the `batchspawner-singleuser` script. | + | **An up 2 date list of packages can always be found in our repo: [[https:// |
- | The script can be found at [[https:// | + | In order to be able to use the image with JupyterHub you also have to make sure to convert it to a **singularity image** (or build it as a singularity image in the first place) and place it into a folder that is accessible from the VSC compute nodes. |
- | In addition we also install | + | Building a singularity image from e.g. a docker container can easily be done with the `singularity build` command. See the singularity documentation for examples: [[https:// |
- | * jupyterlab-system-monitor | + | |
- | * jupyterlab-git | + | |
- | * jupyterlab-widgets | + | |
- | An up 2 date list of packages | + | ==== Run hooks from / |
+ | |||
+ | If your image needs to run hooks before startup (e.g. the pyspark image depends on this [[https:// | ||
+ | |||
+ | Unfortunately the batchspawner package does not source them so we are using a custom startscript in our images called `vsc-singleuser.sh`. All it does is to run the hooks from `/ | ||
+ | |||
+ | The script | ||
+ | |||
+ | Note: Contact us to get read rights to the repository. | ||
- | In order to then use the image with JupyterHub you have to convert it to a singularity image and place it into a folder that is accessible from the VSC compute nodes. | ||
- | Building a singularity image from e.g. a docker container can easily be done with the `singularity build` command. See the singularity documentation for examples: [[https:// | ||