Skip to content

Commit

Permalink
Trace startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Jul 22, 2024
1 parent 7c30427 commit dba9fbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ RUN --mount=from=uv,source=/uv,target=/bin/uv \

USER root
COPY ./before-notebook.d/* /usr/local/bin/before-notebook.d/
RUN fix-permissions "${CONDA_DIR}"
RUN fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# REMOVE HOME
RUN find /home/${NB_USER}/ -delete
Expand Down
9 changes: 6 additions & 3 deletions before-notebook.d/00_untar_home.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -u
set -eux

home="/home/${NB_USER}"
HOME_TAR="/opt/conda/home.tar"
Expand All @@ -16,9 +16,12 @@ if [[ $(ls -A ${home} | wc -l) = "0" ]]; then
fi

echo "Extracting $HOME_TAR to $home"
tar -xf $HOME_TAR -C $home
tar -xf $HOME_TAR -C "$home"

echo "Copying directory '$QE_APP_FOLDER' to '$home/apps/'"
cp -r "$QE_APP_FOLDER" "$home/apps/"
else
echo "$home folder is not empty!"
ls -lrta "$home"
fi
set +u
set +eux

0 comments on commit dba9fbb

Please sign in to comment.