Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
doku:jupyterhub [2023/02/27 09:06] – [BYOI: Bring your own (Singularity) Image] katrindoku:jupyterhub [2023/04/03 08:23] – [BYOI: Bring your own (Singularity) Image] katrin
Line 70: Line 70:
 To stop the server, click on 'Control Panel' at the top right and choose 'Stop My Server' To stop the server, click on 'Control Panel' at the top right and choose 'Stop My Server'
  
-===== BYOI: Bring your own (Singularity) Image =====+===== BYOI: Bring your own (Apptainer/Singularity) Image =====
  
-It is possible to use a custom singularity image with our JupyterHub profiles. +It is possible to use a custom apptainer/singularity image with our JupyterHub profiles. 
  
-A good starting point is to have a look at the official JupyterHub Docker Stacks Images @ [[https://github.com/jupyter/docker-stacks|Docker-Stacks]].+==== Necessary Packages ====
  
-In a nutshell it is only necessary to install the following packages into your docker image+To get your custom image to run in our JupyterHub environment it is necessary to add the following packages into your image
 <code> <code>
-jupyterhub==3.0.0        # This package pulls in all the necessary dependencies to start a jupyter server +# This package pulls in all the necessary dependencies to start a jupyter server 
-git+https://github.com/katringoogoo/batchspawner.git@jupyterhub-3.0.0b1        # This package provides functionality needed to run in the slurm environment of VSC (e.g. `batchspawner-singleuser` script).+jupyterhub==3.1.        
 + 
 +# This package provides functionality needed to run in the slurm environment of VSC (e.g. `batchspawner-singleuser` script). 
 +git+https://github.com/katringoogoo/batchspawner.git@1.2.0+auth_fix        
 </code> </code>
  
-In addition we also install the following jupyterlab extensions in our images but they are not strictly necessary and just provide extended functionality like memory monitoring for the user:+In addition we usually also install the following jupyterlab extensions in our images but they are not strictly necessary and just provide extended functionality like memory monitoring for the user:
   * jupyterlab-system-monitor   * jupyterlab-system-monitor
   * jupyterlab-git    * jupyterlab-git 
   * jupyterlab-widgets   * jupyterlab-widgets
  
-**An up 2 date list of packages can always be found in our repo: [[https://gitlab.tuwien.ac.at/vsc/vsc-jupyterhub-notebooks/-/blob/main/tools/requirements.txt|requirements.txt]]**+**An up 2 date list of packages can always be found in our repo: [[https://gitlab.tuwien.ac.at/vsc/jupyterhub/jupyterhub-docker-stacks/-/blob/main/tools/requirements.txt|requirements.txt]]**
  
-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.+==== Via Docker Container ==== 
 + 
 +A good starting point for your own container are the official JupyterHub Docker Stacks Images @ [[https://github.com/jupyter/docker-stacks|Docker-Stacks]]. If you take these as a basis make sure you use the right version for the current version of our JupyterHub 
 + 
 +In order to be able to use the image with JupyterHub you also have 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.
  
 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://apptainer.org/user-docs/3.8/build_a_container.html|Build a (singularity) container]] 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://apptainer.org/user-docs/3.8/build_a_container.html|Build a (singularity) container]]
Line 107: Line 114:
  
 ===== FAQ ===== ===== FAQ =====
- 
-  * **The OTP SMS says 'login at vsc3'? Is this an issue?** 
- 
-No this is a current limitation of our OTP system and should not cause any problems. 
  
   * **My Server instance is stuck and I get a timeout when I try to reload the window. Going to the VSC jupyterhub website also results in a timeout.**   * **My Server instance is stuck and I get a timeout when I try to reload the window. Going to the VSC jupyterhub website also results in a timeout.**
  • doku/jupyterhub.txt
  • Last modified: 2023/11/14 13:51
  • by katrin