From 92a9655a5020b8c8895e2c8fd71ae73d1ea16c34 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 16 Nov 2024 19:54:19 +1100 Subject: [PATCH] feat: jupyterhub updates - always pull containers when starting new instance - enable access to terminal --- site/profiles/templates/jupyterhub/config.py.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/profiles/templates/jupyterhub/config.py.erb b/site/profiles/templates/jupyterhub/config.py.erb index 7aad2c6..071c87f 100644 --- a/site/profiles/templates/jupyterhub/config.py.erb +++ b/site/profiles/templates/jupyterhub/config.py.erb @@ -9,6 +9,7 @@ c = get_config() c.JupyterHub.bind_url = 'http://:8000' c.JupyterHub.hub_ip = '0.0.0.0' c.JupyterHub.hub_port = 8081 +c.NotebookApp.enable_terminals = True # Configure the DockerSpawner c.JupyterHub.spawner_class = DockerSpawner @@ -26,6 +27,7 @@ c.DockerSpawner.volumes = { # DockerSpawner options c.DockerSpawner.remove = True c.DockerSpawner.debug = True +c.DockerSpawner.pull_policy = "always" # LDAP Authentication c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'