Permalink
Browse files

Config and env file to run on local or remote Docker

  • Loading branch information...
1 parent 63ed6c0 commit 03ddcef7d6d87bce2385582a26b19a8cf4f33bb7 @BertrandNOEL BertrandNOEL committed Apr 27, 2016
Showing with 27 additions and 0 deletions.
  1. +4 −0 env.docker-local.orig
  2. +5 −0 env.docker-remote.orig
  3. +18 −0 etc/container_config.py
View
@@ -0,0 +1,4 @@
+GITHUB_CLIENT_ID=
+GITHUB_CLIENT_SECRET=
+OAUTH_CALLBACK_URL=http://xxxxxxxx:8000/hub/oauth_callback
+EVERWARE_WHITELIST=whitelist.txt
View
@@ -0,0 +1,5 @@
+GITHUB_CLIENT_ID=
+GITHUB_CLIENT_SECRET=
+OAUTH_CALLBACK_URL=http://xxxxxxxx:8000/hub/oauth_callback
+EVERWARE_WHITELIST=whitelist.txt
+DOCKER_HOST=tcp://xxx.xxx.xxx.xxx:2376
View
@@ -0,0 +1,18 @@
+# Use this config file to run everware in a container,
+# and create user containers in local or remote Docker service
+#
+# In case of local, don't forget to mount /var/run/docker.sock
+# In case of remote, don't forget the DOCKER_HOST environment variable
+
+c = get_config()
+load_subconfig('etc/base_config.py')
+load_subconfig('etc/github_auth.py')
+
+c.JupyterHub.hub_ip = '0.0.0.0'
+c.JupyterHub.proxy_api_ip = '0.0.0.0'
+
+# Change these two next settings:
+# IP of the machine where the Everware can be contacted
+c.DockerSpawner.hub_ip_connect = 'xxx.xxx.xxx.xxx'
+# IP of the machine running Docker service
+c.DockerSpawner.container_ip = 'xxx.xxx.xxx.xxx'

0 comments on commit 03ddcef

Please sign in to comment.