-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
155 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Do not forget to pin down the version | ||
FROM jupyterhub/jupyterhub:1.0.0 | ||
|
||
# OLD: Copy the JupyterHub configuration in the container | ||
# COPY jupyterhub_config.py . | ||
# NEW: map as volume -> /srv/jupyterhub/jupyterhub_config.py | ||
|
||
# Download script to automatically stop idle single-user servers | ||
RUN wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/1.0.0/examples/cull-idle/cull_idle_servers.py | ||
|
||
# Install dependencies (for advanced authentication and spawning) | ||
RUN pip install \ | ||
dockerspawner==0.11.1 \ | ||
oauthenticator==0.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM jupyter/scipy-notebook:6c3390a9292e | ||
RUN pip install --pre jupyterhub==1.0.0 | ||
|
||
# RUN pip install jupyterhub==1.0.0 | ||
|
||
# RUN conda install --quiet --yes \ | ||
# 'r-base=3.4.1' \ | ||
# 'r-irkernel=0.8*'&& \ | ||
# conda clean -tipsy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# top-level http config for websocket headers | ||
# If Upgrade is defined, Connection = upgrade | ||
# If Upgrade is empty, Connection = close | ||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} | ||
|
||
|
||
# redirect to https | ||
server { | ||
listen *:80; | ||
server_name bmeg-jupyter.ddns.net; | ||
return 301 https://$host$request_uri; | ||
} | ||
|
||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
|
||
server_name bmeg-jupyter.ddns.net; | ||
ssl_certificate /etc/letsencrypt/live/bmeg-jupyter.ddns.net/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/bmeg-jupyter.ddns.net/privkey.pem; | ||
|
||
|
||
# Managing literal requests to the JupyterHub front end | ||
location / { | ||
proxy_pass http://jupyterhub:8000; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
|
||
# websocket headers | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection $connection_upgrade; | ||
} | ||
|
||
# for certbot challenge | ||
location /.well-known/acme-challenge/ { | ||
root /var/www/certbot; | ||
} | ||
|
||
} |