Generate random traefik api password

This commit is contained in:
GeorgianaElena
2019-02-13 14:10:28 +02:00
parent f7f686f540
commit e8b303d01b
9 changed files with 30 additions and 23 deletions

View File

@@ -86,20 +86,12 @@ def main():
'git+https://github.com/jupyterhub/the-littlest-jupyterhub.git'
)
traefik_proxy_repo_path = 'jupyterhub-traefik-proxy==0.1.0a1'
subprocess.check_output([
os.path.join(hub_prefix, 'bin', 'pip'),
'install'
] + pip_flags + [tljh_repo_path], stderr=subprocess.STDOUT)
logger.info('Setup tljh package')
subprocess.check_output([
os.path.join(hub_prefix, 'bin', 'pip'),
'install'
] + [traefik_proxy_repo_path], stderr=subprocess.STDOUT)
logger.info('Setup traefik-proxy package')
logger.info('Starting TLJH installer...')
os.execv(
os.path.join(hub_prefix, 'bin', 'python3'),