Skip to content

Commit

Permalink
Merge pull request #197 from DSD-DBS/juypter-notebook-shared-fix
Browse files Browse the repository at this point in the history
fix: Create `/shared` directory in Dockerfile
  • Loading branch information
MoritzWeber0 authored Sep 4, 2023
2 parents e700ae3 + d7d4dac commit 4f6d7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jupyter-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN apt update && \

COPY docker-entrypoint.sh /
COPY requirements_template.txt /etc/skel
RUN chmod +x /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh && \
mkdir -p "/shared" && chown techuser "/shared"

USER techuser

Expand Down
1 change: 0 additions & 1 deletion jupyter-notebook/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p "$NOTEBOOKS_DIR"
test -f "$NOTEBOOKS_DIR/requirements.txt" || cp /etc/skel/requirements_template.txt "$NOTEBOOKS_DIR/requirements.txt"
pip install -U -r "$NOTEBOOKS_DIR/requirements.txt" -r /etc/skel/requirements_template.txt 2>&1 | tee "$NOTEBOOKS_DIR/installlog.txt"

mkdir -p "/shared"
test -d "$NOTEBOOKS_DIR/shared" || ln -s /shared "$NOTEBOOKS_DIR/shared"

echo "---START_SESSION---"
Expand Down

0 comments on commit 4f6d7ef

Please sign in to comment.