From 8994e26f4fd170c4e55ba5aa8ac6009906aa2867 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Fri, 8 Apr 2022 01:56:05 +0200 Subject: [PATCH] Added creating shared and data folders in the standalone computing service startup. --- services/standaloneworker/entrypoint.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/services/standaloneworker/entrypoint.sh b/services/standaloneworker/entrypoint.sh index f7f16a6..5a3ec21 100644 --- a/services/standaloneworker/entrypoint.sh +++ b/services/standaloneworker/entrypoint.sh @@ -12,6 +12,20 @@ chmod 777 /dev/net/tun #PROXY_IP=$(ping proxy -c1 | head -n1 | cut -d '(' -f2 | cut -d')' -f1) #echo "$PROXY_IP rosetta.platform" >> /etc/hosts +# Create shared data directories +mkdir -p /shared/scratch +chmod 777 /shared/scratch + +mkdir -p /shared/data/shared +chmod 777 /shared/data/shared + +mkdir -p /shared/data/users +chown rosetta:rosetta /shared/data/users/ + +mkdir -p /shared/data/users/testuser +chown testuser:testuser /shared/data/users/testuser + + #--------------------- # Entrypoint command #--------------------- -- GitLab