mirror of
https://github.com/balkian/jupyterhub-oauth.git
synced 2025-08-29 16:52:21 +00:00
First commit
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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 addusers.sh /srv/oauthenticator/addusers.sh
|
||||
ADD userlist /srv/oauthenticator/userlist
|
||||
ADD ssl /srv/oauthenticator/ssl
|
||||
RUN chmod 700 /srv/oauthenticator
|
||||
RUN groupadd hubadmin
|
||||
RUN echo "%hubadmin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
||||
VOLUME /home
|
||||
|
||||
RUN ["sh", "/srv/oauthenticator/addusers.sh"]
|
Reference in New Issue
Block a user