Commit ec037309 authored by Florian de Boissieu's avatar Florian de Boissieu
Browse files

add jupyterhub config file as mounted volume

parent 08cc4b18
No related merge requests found
Showing with 3 additions and 12 deletions
+3 -12
- Add jupyter_config.py as a volume in docker-compose.yml
- Add userlist as a bind volume and use it in jupyterhub_config.py - Add userlist as a bind volume and use it in jupyterhub_config.py
- Add an ansible playbook to create users for the non-gitlab auth - Add an ansible playbook to create users for the non-gitlab auth
- Documentation of jupyterhub-rstudio and jupyterhub-rstudio-gitlab - Documentation of jupyterhub-rstudio and jupyterhub-rstudio-gitlab
......
...@@ -8,6 +8,7 @@ services: ...@@ -8,6 +8,7 @@ services:
container_name: ${COMPOSE_PROJECT_NAME}_hub # The service will use this container name. container_name: ${COMPOSE_PROJECT_NAME}_hub # The service will use this container name.
volumes: # Give access to Docker socket. volumes: # Give access to Docker socket.
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ./jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py
environment: # Env variables passed to the Hub process. environment: # Env variables passed to the Hub process.
DOCKER_JUPYTER_IMAGE: jupyter/minimal-notebook DOCKER_JUPYTER_IMAGE: jupyter/minimal-notebook
DOCKER_NETWORK_NAME: ${COMPOSE_PROJECT_NAME}_default DOCKER_NETWORK_NAME: ${COMPOSE_PROJECT_NAME}_default
......
# Do not forget to pin down the version # Do not forget to pin down the version
FROM jupyterhub/jupyterhub:3.0.0 FROM jupyterhub/jupyterhub:3.0.0
# Copy the JupyterHub configuration in the container
COPY jupyterhub_config.py .
# Download script to automatically stop idle single-user servers # Download script to automatically stop idle single-user servers
# RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.9.3/examples/cull-idle/cull_idle_servers.py # RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.9.3/examples/cull-idle/cull_idle_servers.py
......
# Do not forget to pin down the version # Do not forget to pin down the version
FROM jupyterhub/jupyterhub:3.0.0 FROM jupyterhub/jupyterhub:3.0.0
# Copy the JupyterHub configuration in the container
COPY jupyterhub_config.py .
# Download script to automatically stop idle single-user servers # Download script to automatically stop idle single-user servers
# RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.9.3/examples/cull-idle/cull_idle_servers.py # RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.9.3/examples/cull-idle/cull_idle_servers.py
# Install dependencies (for advanced authentication and spawning) # Install dependencies (for advanced authentication and spawning)
RUN pip3 install --no-cache dockerspawner oauthenticator RUN pip3 install --no-cache dockerspawner oauthenticator
# dockerspawner==0.10.0 \
# oauthenticator==0.8.0
...@@ -8,6 +8,7 @@ services: ...@@ -8,6 +8,7 @@ services:
container_name: ${COMPOSE_PROJECT_NAME}_hub # The service will use this container name. container_name: ${COMPOSE_PROJECT_NAME}_hub # The service will use this container name.
volumes: # Give access to Docker socket. volumes: # Give access to Docker socket.
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ./jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py
environment: # Env variables passed to the Hub process. environment: # Env variables passed to the Hub process.
DOCKER_JUPYTER_IMAGE: rstudio_img DOCKER_JUPYTER_IMAGE: rstudio_img
DOCKER_NETWORK_NAME: ${COMPOSE_PROJECT_NAME}_default DOCKER_NETWORK_NAME: ${COMPOSE_PROJECT_NAME}_default
......
# Do not forget to pin down the version # Do not forget to pin down the version
FROM jupyterhub/jupyterhub:3.0.0 FROM jupyterhub/jupyterhub:3.0.0
# Copy the JupyterHub configuration in the container
COPY jupyterhub_config.py .
# Download script to automatically stop idle single-user servers # Download script to automatically stop idle single-user servers
# RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.9.3/examples/cull-idle/cull_idle_servers.py # RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.9.3/examples/cull-idle/cull_idle_servers.py
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment