Skip to content

Instantly share code, notes, and snippets.

View willirath's full-sized avatar

Willi Rath willirath

View GitHub Profile
@kathoef
kathoef / README.md
Last active February 20, 2025 13:17
Jupyterhub for Docker rootless terminal access

JupyterHub for Docker container course

This JupyterHub setup provides access to a web-based interactive docker terminal environment for use in e.g. Docker course settings. Issues around getting Docker to work on every participant's end device during the class are mitigated, and "bring your own working (!) Docker environment" is not anymore a requirement for taking part in the course. The setup ensures that teachers can focus solely on helping out with the course contents.

This setup is based on the "The Littlest JupyterHub" and leverages "Docker rootless" as provided by Docker Inc. to prevent issues around (1) privilege escalation (for sudo and docker-group Docker usage approaches) and (2) Docker daemon isolation. With this setup, every participant gets their own "safe to use" Docker container working environment, which also (mostly) resembles the Docker environment that would be presented on a local machine.

The setup was tested successfully with Ubuntu 22.04 and Ubuntu 24.04 releases.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benbovy
benbovy / ball_tree_xr_accessor.ipynb
Last active July 31, 2022 20:58
Ball Tree Xarray Index
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikebeaumont
mikebeaumont / RAPIDS with Singularity
Created February 26, 2019 15:57
RAPIDS with Singularity
$ singularity build rapidsai.sif docker://rapidsai/rapidsai:cuda9.2-runtime-ubuntu16.04
$ export SINGULARITYENV_TINI_SUBREAPER=1
$ singularity run --nv rapidsai.sif
container:~$ source activate rapids
(rapids) container:~$ cd /rapids/notebooks && bash utils/start-jupyter.sh