mirror of
https://github.com/balkian/jupyterhub-oauth.git
synced 2024-12-22 03:58:13 +00:00
0bb2ea7963
* Now we avoid using localusers and use a DockerSpawner directy * There is an option to select other oauthenticator classes
26 lines
734 B
Docker
26 lines
734 B
Docker
# Designed to be run as
|
|
#
|
|
# docker run -it -p 8000:8000 jupyter/oauthenticator
|
|
|
|
FROM jupyter/jupyterhub
|
|
|
|
MAINTAINER Project Jupyter <ipython-dev@scipy.org>
|
|
|
|
# Install oauthenticator from git
|
|
RUN pip install git+git://github.com/jupyter/oauthenticator.git
|
|
RUN pip install git+git://github.com/jupyter/dockerspawner.git
|
|
|
|
# Create oauthenticator directory and put necessary files in it
|
|
RUN mkdir /srv/oauthenticator
|
|
WORKDIR /srv/oauthenticator
|
|
ENV OAUTHENTICATOR_DIR /srv/oauthenticator
|
|
ADD ssl /srv/oauthenticator/ssl
|
|
RUN chmod 700 /srv/oauthenticator
|
|
RUN groupadd hubadmin
|
|
RUN echo "%hubadmin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
|
|
|
|
ENV USERS_DIR /output
|
|
|
|
VOLUME /home |