1: 2020-08-21 (金) 16:49:29 iseki |
2: 2020-08-21 (金) 17:38:33 iseki |
- | ** DockerSpawner 用 jupyterhub_config.py のサンプル [#vbd02bbc] | + | *** DockerSpawner 用 サンプル jupyterhub_config.py [#vbd02bbc] |
| # Configuration file for jupyterhub. | | # Configuration file for jupyterhub. |
| | | |
| #c.JupyterHub.spawner_class = 'dockerspawner.SwarmSpawner' | | #c.JupyterHub.spawner_class = 'dockerspawner.SwarmSpawner' |
| | | |
- | #c.DockerSpawner.container_image = 'niicloudoperation/jupyterhub-singleuser' | + | #c.DockerSpawner.image = 'niicloudoperation/jupyterhub-singleuser' |
- | #c.DockerSpawner.container_image = 'niicloudoperation/notebook' | + | #c.DockerSpawner.image = 'niicloudoperation/notebook' |
- | c.DockerSpawner.container_image = 'jupyterhub/singleuser' | + | c.DockerSpawner.image = 'jupyterhub/singleuser' |
| #c.DockerSpawner.image_whitelist = { | | #c.DockerSpawner.image_whitelist = { |
| # "deepdetect-gpu (Tensorflow+PyTorch)": "jolibrain/jupyter-dd-notebook-gpu", | | # "deepdetect-gpu (Tensorflow+PyTorch)": "jolibrain/jupyter-dd-notebook-gpu", |
| # "coursewarehub": "niicloudoperation/jupyterhub-singleuser", | | # "coursewarehub": "niicloudoperation/jupyterhub-singleuser", |
| #} | | #} |
- | c.DockerSpawner.remove_containers = True | + | c.DockerSpawner.remove = True |
- | #c.DockerSpawner.extra_create_kwargs = {'user': 'root'} | + | c.DockerSpawner.extra_create_kwargs = {'user': 'root'} |
| #c.DockerSpawner.extra_host_config = {'runtime': 'nvidia'} | | #c.DockerSpawner.extra_host_config = {'runtime': 'nvidia'} |
| c.Spawner.environment = {'GRANT_SUDO': 'yes'} | | c.Spawner.environment = {'GRANT_SUDO': 'yes'} |
- | #c.DockerSpawner.hub_connect_ip = '192.168.27.20' | |
- | c.DockerSpawner.hub_connect_ip = '0.0.0.0' | |
| notebook_dir = '/home/jovyan/work' | | notebook_dir = '/home/jovyan/work' |
- | #notebook_dir = '/jupyter/users/{username}/work' | |
| c.DockerSpawner.notebook_dir = notebook_dir | | c.DockerSpawner.notebook_dir = notebook_dir |
| c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir } | | c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir } |
| # Defaults to an empty set, in which case no user has admin access. | | # Defaults to an empty set, in which case no user has admin access. |
| #c.Authenticator.admin_users = set() | | #c.Authenticator.admin_users = set() |
- | #c.Authenticator.admin_users = {''} | + | c.Authenticator.admin_users = {'admin'} |
| | | |
| ## The max age (in seconds) of authentication info before forcing a refresh of | | ## The max age (in seconds) of authentication info before forcing a refresh of |