Add jupyterhub compose file and Dockerfile
This commit is contained in:
parent
3c54534070
commit
dd2d493272
@ -46,3 +46,7 @@ Nothing to do here
|
||||
## Searxng
|
||||
|
||||
Make volume paths relative
|
||||
|
||||
## Jupyterhub
|
||||
|
||||
Simple jupyterhub setup. Allows for passwordless login of users set in Dockerfile.
|
||||
|
23
jupyterhub/Dockerfile
Normal file
23
jupyterhub/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM quay.io/jupyterhub/jupyterhub:latest
|
||||
|
||||
RUN useradd -m fabian
|
||||
RUN useradd -m amour
|
||||
RUN passwd -d fabian
|
||||
RUN passwd -d amour
|
||||
|
||||
RUN pip install notebook
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
RUN echo '#!/bin/sh \n\
|
||||
\n\
|
||||
echo "c = get_config()" >> /srv/jupyterhub/jupyterhub_config.py \n\
|
||||
echo "c.Authenticator.allow_all = True" >> /srv/jupyterhub/jupyterhub_config.py \n\
|
||||
\n\
|
||||
exec jupyterhub -f /srv/jupyterhub/jupyterhub_config.py \n\
|
||||
' >> /data/run.sh
|
||||
|
||||
RUN chmod +x /data/run.sh
|
||||
|
||||
|
||||
CMD ["/data/run.sh"]
|
10
jupyterhub/compose.yaml
Normal file
10
jupyterhub/compose.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
services:
|
||||
jupyterhub:
|
||||
build: .
|
||||
image: jupyterhub
|
||||
container_name: jupyterhub
|
||||
volumes:
|
||||
- ./data:/srv/jupyterhub
|
||||
ports:
|
||||
- 8050:8000
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user