flagflag  
1: 2020-08-21 (Fri) 16:49:29 iseki source 2: 2020-08-21 (Fri) 17:38:33 iseki source
Line 1: Line 1:
-** DockerSpawner​ 用 jupyterhub_config.py のサンプル [#vbd02bbc]+*** DockerSpawner​ 用 サンプル jupyterhub_config.py [#vbd02bbc]
 # Configuration file for jupyterhub.  # Configuration file for jupyterhub.
Line 488: Line 488:
 #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",
Line 499: Line 499:
 #    "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 }
Line 915: Line 912:
 #  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


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

80 user(s) are online (10 user(s) are browsing xpwiki)

Members: 0
Guests: 80

more...

Access Counter

Today : 1475147514751475
Yesterday : 5453545354535453
Total : 2370717123707171237071712370717123707171237071712370717123707171
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com