From 597de507abd9b2b67d3576fd5c1459e6a4404f09 Mon Sep 17 00:00:00 2001 From: "lukas.gehrig" Date: Fri, 21 Jun 2024 10:07:11 +0200 Subject: [PATCH] fixed home-access for singularity-support :bread: --- Dockerfile | 3 +++ doc/src/container.md | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0422d29e..528251e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,6 +53,9 @@ RUN echo "source $BASH_ENV" >> /etc/bash.bashrc && \ RUN echo "$CONDA_PREFIX"/lib > /etc/ld.so.conf.d/conda.conf && \ ldconfig +# allow access to all users to home-dir for singularity support (shouldn't be an issue?) +RUN chmod 777 -R /home/karabo + # Additional setup USER karabo ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "karabo"] \ No newline at end of file diff --git a/doc/src/container.md b/doc/src/container.md index d3f97656..a745d7b6 100644 --- a/doc/src/container.md +++ b/doc/src/container.md @@ -18,16 +18,16 @@ There's a `karabo` user set per default in the container from Karabo >= `v0.26.0 ```shell -docker run --rm --user :$(id -u):$(id -g) -v : -p : //: bash -c +docker run --rm --user :: -v : -p : //: bash -c ``` -which could results in something like launching a jupyter-notebook: +which could results in something like launching a jupyter-notebook and destroying the container after termination: ```shell docker run --rm --user karabo:$(id -u):$(id -g) -p 8888:8888 ghcr.io/i4ds/karabo-pipeline:latest bash -c 'jupyter lab --ip 0.0.0.0 --no-browser --port=8888' ``` -This starts a port-forwarded jupyter-lab server in the container, accessible through a browser using the printed URL. +This starts a port-forwarded jupyter-lab server in the container, accessible through a browser using the printed URL. If you're operating on a remote server, don't forget to port-forwarding through SSH. ## Singularity Containers