forked from swan-cern/jupyterhub-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jupyterhub_config.py
31 lines (25 loc) · 1.03 KB
/
jupyterhub_config.py
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
c = get_config()
# The docker instances need access to the Hub, so the default loopback port doesn't work:
from jupyter_client.localinterfaces import public_ips
c.JupyterHub.hub_ip = public_ips()[0]
# Authenticator
c.JupyterHub.authenticator_class = 'ssoauthenticator.SSOAuthenticator'
c.SSOAuthenticator.admin_users = {'dpiparo', 'etejedor'}
#c.SSOAuthenticator.accepted_egroup = 'dmaas-test-users'
# Spawner
c.JupyterHub.spawner_class = 'cernspawner.CERNSpawner'
c.CERNSpawner.container_image = "cernphsft/systemuser"
c.CERNSpawner.read_only_volumes = { '/cvmfs':'/cvmfs' }
c.CERNSpawner.volumes = { '/eos' : '/eos'}
c.CERNSpawner.auth_script = '/root/eos-fuse.sh'
c.CERNSpawner.eos_path_prefix = '/eos/scratch/user'
c.CERNSpawner.options_form = """
<label for="LCG-rel">LCG release</label>
<select name="LCG-rel">
<option value="82rootaas6" selected>82 ROOTaaS6</option>
</select>
<label for="platform">Platform</label>
<select name="platform">
<option value="x86_64-slc6-gcc49-opt" selected>x86_64-slc6-gcc49-opt</option>
</select>
"""