Skip to content

Commit 930371b

Browse files
Hydrate repo from remote (#50)
1 parent 410e5ba commit 930371b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.devcontainer/postStartCommand.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
"$SCRIPT_DIR/refreshTools.sh"
55

6+
# Check if SNAPSHOT_SAS_URL was passed, if so run hydrate.sh in background
7+
if [ -n "$SNAPSHOT_SAS_URL" ]; then
8+
WORKSPACE_DIR="/workspaces/spark-template"
9+
SAS_URI="$SNAPSHOT_SAS_URL" /usr/local/bin/hydrate.sh $WORKSPACE_DIR
10+
fi
11+
612
sudo cp .devcontainer/spark.conf /etc/supervisor/conf.d/
713

814
sudo chown node /var/run/

0 commit comments

Comments
 (0)