Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "preview" support of Singularity images #58

Merged
merged 1 commit into from
Jul 6, 2022
Merged

Add "preview" support of Singularity images #58

merged 1 commit into from
Jul 6, 2022

Conversation

t20100
Copy link
Member

@t20100 t20100 commented Jul 6, 2022

This PR adds a support of singularity images.
The command to start singularity can be tuned in the config.

The requirements on the singularity image is that batchspawner and jupyterhub (and obviously jupyter/jupyterlab) are available in the container and are in the PATH.

There is a convenient flow in the current implementation: one can pass options (e.g., --nv to enable nvidia GPU support and --bind to "mount" directories in the container, like /data) as space separated along with the "environment path".
In a final version, I would avoid that, either with the right options in the "singularity_cmd" or through specific inputs in the UI, but for a "preview" feature it's good to have flexibility.

I didn't advertise the support of it in the interface on purpose to keep it as a beta feature for now.

@t20100 t20100 added this to the Next release milestone Jul 6, 2022
@t20100 t20100 requested a review from loichuder July 6, 2022 13:13
jupyterhub_moss/spawner.py Show resolved Hide resolved
jupyterhub_moss/spawner.py Outdated Show resolved Hide resolved
@t20100 t20100 merged commit c2201cc into main Jul 6, 2022
@t20100 t20100 deleted the singularity branch July 6, 2022 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants