Commit 7a4dd112 authored by Evgeny Lavrik's avatar Evgeny Lavrik
Browse files

Update Jupyterhub.Dockerfile

parent 8ffa5f96
ARG BASE_IMAGE=elavrik/cbmroot-hub/cbmroot:latest
FROM $BASE_IMAGE
SHELL ["/bin/bash", "-c"]
# Default user
ARG USERNAME=user
ARG USERPASSWORD=test
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN useradd -u ${USER_UID} -U -m ${USERNAME}
RUN echo "${USERNAME}:test" | chpasswd
RUN echo "${USERNAME}:${USERPASSWORD}" | chpasswd
# Install python2 and pip2 since PyROOT relies on it
......@@ -23,8 +22,7 @@ WORKDIR /srv/jupyterhub
ADD ./jupyterhub_config.py ./jupyterhub_config.py
RUN git clone https://github.com/root-project/NotebookPrimer.git /home/${USERNAME}/NotebookPrimer && \
chown -R ${USER_UID}:${USER_UID} /home/${USERNAME}/NotebookPrimer/ && \
source /opt/cbmroot/bin/CbmRootConfig.sh
chown -R ${USER_UID}:${USER_UID} /home/${USERNAME}/NotebookPrimer/
EXPOSE 8000
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment