Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
normalize the jupyterhub environment variable names
  • Loading branch information
vigsterkr committed Mar 14, 2017
1 parent c089e1a commit fa4909a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker/jupyterhub/jupyterhub_config.py
Expand Up @@ -20,12 +20,13 @@
c.MarathonSpawner.marathon_host = os.environ.get('MARATHON_MASTER')
c.MarathonSpawner.marathon_constraints = os.getenv('MARATHON_CONSTRAINTS', [])
c.MarathonSpawner.notebook_dir = os.environ.get('DOCKER_NOTEBOOK_DIR') or '/home/jovyan/work'
c.MarathonSpawner.hub_ip_connect = os.environ.get('HUB_IP_CONNECT')
c.MarathonSpawner.hub_port_connect = int(os.environ.get('HUB_PORT_CONNECT'))
c.MarathonSpawner.hub_ip_connect = os.environ.get('JUPYTERHUB_IP_CONNECT')
c.MarathonSpawner.hub_port_connect = int(os.environ.get('JUPYTERHUB_PORT_CONNECT'))
c.MarathonSpawner.mem_limit = os.getenv('NOTEBOOK_MEMORY_LIMIT', '2G')
c.MarathonSpawner.cpu_limit = float(os.getenv('NOTEBOOK_CPU_LIMIT', 2.0))
c.MarathonSpawner.start_timeout = int(os.getenv('JPY_START_TIMEOUT', '60'))
c.MarathonSpawner.http_timeout = int(os.getenv('JPY_HTTP_TIMEOUT', '60'))
c.MarathonSpawner.start_timeout = int(os.getenv('JUPYTERHUB_START_TIMEOUT', '60'))
c.MarathonSpawner.http_timeout = int(os.getenv('JUPYTERHUB_HTTP_TIMEOUT', '60'))
c.MarathonSpawner.poll_interval = int(os.getenv('JUPYTERHUB_POLL_INTERVAL', '30'))


def volumes(env_var):
Expand Down

0 comments on commit fa4909a

Please sign in to comment.