This is an automated email from the ASF dual-hosted git repository.
lahirujayathilake pushed a commit to branch cybershuttle-staging
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/cybershuttle-staging by this
push:
new b22b4a2588 clone the repo in to the work directory and grant the right
permissions
b22b4a2588 is described below
commit b22b4a25885fc3d51b917ffd22a3e1cfa9d88fa3
Author: lahiruj <[email protected]>
AuthorDate: Mon Mar 31 05:21:13 2025 -0400
clone the repo in to the work directory and grant the right permissions
---
.../research-framework/research-hub/compose/user-container/init.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/modules/research-framework/research-hub/compose/user-container/init.sh
b/modules/research-framework/research-hub/compose/user-container/init.sh
index c1899e19c7..664146925b 100755
--- a/modules/research-framework/research-hub/compose/user-container/init.sh
+++ b/modules/research-framework/research-hub/compose/user-container/init.sh
@@ -6,17 +6,16 @@ SHARED_TMP="/home/jovyan/shared_data_tmp"
mkdir -p "$TARGET_DIR"
if [ ! -f "$TARGET_DIR/.initialized" ]; then
- echo "Copying default Docker files into the mounted workspace..."
- touch "$TARGET_DIR/.initialized"
chown -R jovyan:users "$TARGET_DIR"
# If $GIT_URL is set, clone the repo into the workspace
if [ -n "$GIT_URL" ]; then
echo "Cloning repo from $GIT_URL..."
cd "$TARGET_DIR"
- git clone "$GIT_URL" repo
- chown -R jovyan:users "repo"
+ git clone "$GIT_URL" .
+ chown -R jovyan:users .
fi
+ touch "$TARGET_DIR/.initialized"
else
echo "Docker default files already exist, skipping copy."
fi