Skip to content
Snippets Groups Projects
Commit 91039d1f authored by ale's avatar ale
Browse files

Enable jupyterhub-idle-culler

parent de5b4d7b
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,28 @@ ...@@ -69,6 +69,28 @@
# Configure the docker-based Spawner. The /home/joyvan path is what the Jupyter # Configure the docker-based Spawner. The /home/joyvan path is what the Jupyter
# Docker images use. # Docker images use.
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner' c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.JupyterHub.load_roles = [
{
"name": "jupyterhub-idle-culler-role",
"scopes": [
"list:users",
"read:users:activity",
"read:servers",
"delete:servers",
],
"services": ["jupyterhub-idle-culler-service"],
}
]
c.JupyterHub.services = [
{
"name": "jupyterhub-idle-culler-service",
"command": [
sys.executable,
"-m", "jupyterhub_idle_culler",
"--timeout=3600",
],
}
]
c.DockerSpawner.notebook_dir = '/home/jovyan/work' c.DockerSpawner.notebook_dir = '/home/jovyan/work'
# This creates a volume for each user to store their notebooks. As an alternative, # This creates a volume for each user to store their notebooks. As an alternative,
# we could bind-mount local filesystem paths (but something must create them first). # we could bind-mount local filesystem paths (but something must create them first).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment