From 9a6bb4f95191c28b0ed028f3a2af8f0da1f34348 Mon Sep 17 00:00:00 2001 From: Tianhao-Gu Date: Tue, 12 Nov 2024 12:07:38 -0600 Subject: [PATCH] add comments --- config/jupyterhub_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/jupyterhub_config.py b/config/jupyterhub_config.py index b5dee40..6effc76 100644 --- a/config/jupyterhub_config.py +++ b/config/jupyterhub_config.py @@ -3,6 +3,9 @@ Refer to the JupyterHub documentation for more information: https://jupyterhub.readthedocs.io/en/latest/tutorial/getting-started/config-basics.html https://jupyterhub.readthedocs.io/en/stable/reference/config-reference.html + +Refer to DockerSpawner documentation for dockerspawner settings information: +https://jupyterhub-dockerspawner.readthedocs.io/en/latest/api/index.html#dockerspawner-api """ import os @@ -53,7 +56,6 @@ c.DockerSpawner.http_timeout = 120 # 2 minutes (default is 30 seconds) c.DockerSpawner.start_timeout = 300 # 5 minutes (default is 60 seconds) - # The network name that Docker containers will use to communicate network_name = os.environ.get('NETWORK_NAME') if network_name: @@ -61,7 +63,6 @@ c.DockerSpawner.use_internal_ip = True environment = os.environ.get('ENVIRONMENT', 'prod').lower() # for troubleshooting purposes, keep the container in non-prod environment -# ref: https://jupyterhub-dockerspawner.readthedocs.io/en/latest/api/index.html#dockerspawner.DockerSpawner.remove c.DockerSpawner.remove = environment != 'dev' c.DockerSpawner.debug = True