2016-04-13 15:38:30 +00:00
|
|
|
# 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
|
2017-01-25 00:53:05 +00:00
|
|
|
ADD oauthenticator /src/oauthenticator
|
|
|
|
ADD dockerspawner /src/dockerspawner
|
|
|
|
RUN pip install /src/oauthenticator
|
|
|
|
RUN pip install /src/dockerspawner
|
2016-04-13 15:38:30 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2017-01-24 23:35:44 +00:00
|
|
|
ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
|
2016-04-13 15:38:30 +00:00
|
|
|
|
2017-01-24 23:35:44 +00:00
|
|
|
ENV USERS_DIR /output
|
|
|
|
|
|
|
|
VOLUME /home
|