Commit 3f69db8f authored by Evgeny Lavrik's avatar Evgeny Lavrik
Browse files

Add docker compose, add persistent directory

parent e8ad64bd
......@@ -7,7 +7,7 @@ ARG USERPASSWORD=test
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN useradd -u ${USER_UID} -U -m ${USERNAME}
RUN useradd -u ${USER_UID} -U -m ${USERNAME} -s /bin/bash
RUN echo "${USERNAME}:${USERPASSWORD}" | chpasswd
......@@ -24,7 +24,10 @@ 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/
chown -R ${USER_UID}:${USER_UID} /home/${USERNAME}/NotebookPrimer/ && \
mkdir /home/${USERNAME}/persistent && chown -R ${USER_UID}:${USER_UID} /home/${USERNAME}/persistent
ENV DISPLAY=:0
EXPOSE 8000
......
version: '3.2'
services:
### Workspace Utilities ##################################
cbmroot-hub:
build:
context: ./
image: elavrik/cbmroot-hub
volumes:
- type: bind
source: ${PWD}/persistent
target: /home/user/persistent
ports:
- "22:22"
- "8000:8000"
tty: true
environment:
- TEST=TEST
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