Skip to content

Instantly share code, notes, and snippets.

@danlester
Last active May 10, 2020 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danlester/4a0ad6c52719679142a290d303faa3db to your computer and use it in GitHub Desktop.
Save danlester/4a0ad6c52719679142a290d303faa3db to your computer and use it in GitHub Desktop.
Config to add DockerSpawner to TLJH
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.DockerSpawner.image = 'ideonate/jh-voila-oauth-singleuser:latest'
from jupyter_client.localinterfaces import public_ips
c.JupyterHub.hub_ip = public_ips()[0]
c.DockerSpawner.name_template = "{prefix}-{username}-{servername}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment