separate docker-db from init-db

so we don't need docker on Travis
This commit is contained in:
Min RK
2017-09-27 19:02:55 +02:00
parent a4a2c9d068
commit df9e002b9a
4 changed files with 63 additions and 34 deletions

View File

@@ -3,9 +3,9 @@ c.JupyterHub.cookie_secret = os.urandom(32)
DB = os.environ.get('DB')
if DB == 'mysql':
c.JupyterHub.db_url = 'mysql+pymysql://root:x@127.0.0.1:13306/jupyterhub'
c.JupyterHub.db_url = 'mysql+pymysql://root@127.0.0.1/jupyterhub_upgrade'
elif DB == 'postgres':
c.JupyterHub.db_url = 'postgresql://postgres@127.0.0.1:15432/jupyterhub'
c.JupyterHub.db_url = 'postgresql://postgres@127.0.0.1/jupyterhub_upgrade'
c.JupyterHub.authenticator_class = 'jupyterhub.auth.Authenticator'
c.Authenticator.whitelist = {'alpha', 'beta', 'gamma'}