From df58e062bab04cda2d951673bbe3ffccd4a1d7fd Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Tue, 8 Oct 2024 10:24:08 -0700 Subject: [PATCH 1/2] Update rocker.sh --- rocker.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/rocker.sh b/rocker.sh index 5fe33e9..caab143 100644 --- a/rocker.sh +++ b/rocker.sh @@ -15,18 +15,3 @@ mv rocker-versioned2-R${R_VERSION}/scripts rocker_scripts && \ mv rocker-versioned2-R${R_VERSION}/dockerfiles/verse_${R_VERSION}.Dockerfile rocker_scripts/verse_${R_VERSION}.Dockerfile && \ rm R${R_VERSION}.tar.gz && \ rm -rf rocker-versioned2-R${R_VERSION} - -# Read the Dockerfile and process each line -while IFS= read -r line; do - # Check if the line starts with ENV or RUN - if [[ "$line" == ENV* ]]; then - # Export the environment variable from the ENV line - eval $(echo "$line" | sed 's/^ENV //g') - elif [[ "$line" == RUN* ]]; then - # Run the command from the RUN line - cmd=$(echo "$line" | sed 's/^RUN //g') - full_cmd="${REPO_DIR}${cmd}" - echo "Executing: $full_cmd" - eval "$full_cmd" - fi -done < rocker_scripts/verse_${R_VERSION}.Dockerfile From 7513cc8af54a6766ed3a299fb19db424fda5765e Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Tue, 8 Oct 2024 10:25:29 -0700 Subject: [PATCH 2/2] stay root for dev --- appendix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appendix b/appendix index b7b0f9e..f359f1c 100644 --- a/appendix +++ b/appendix @@ -11,5 +11,4 @@ RUN mandb RUN chmod +x ${REPO_DIR}/rocker.sh && ${REPO_DIR}/rocker.sh -# Revert to default user -USER ${NB_USER} +# stay as root