File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4
- LATEST_RELEASE=$( bash " $SCRIPT_DIR /refreshTools.sh" )
5
-
6
- sudo cp .devcontainer/spark.conf /etc/supervisor/conf.d/
7
-
8
- # Check git repository state and create initial commit if needed
9
- cd /workspaces/spark-template
10
- echo " Checking git repository state"
11
- if ! git rev-parse HEAD > /dev/null 2>&1 ; then
12
- echo " No commits found, creating initial commit"
13
- git add . || true
14
- git commit --allow-empty --no-verify -m " Initial commit" --no-gpg-sign || true
15
- fi
16
-
17
- cd /tmp/spark
18
- bash spark-sdk-dist/repair.sh
19
- LATEST_RELEASE=" $LATEST_RELEASE " WORKSPACE_DIR=" $WORKSPACE_DIR " bash /tmp/spark/spark-sdk-dist/install-tools.sh services
20
- cd /workspaces/spark-template
21
-
22
- sudo chown node /var/run/
23
- sudo chown -R node /var/log/
24
-
25
- supervisord
26
- supervisorctl reread
27
- supervisorctl update
28
-
29
3
# Check if SNAPSHOT_SAS_URL was passed, if so run hydrate.sh
30
4
if [ -n " $SNAPSHOT_SAS_URL " ]; then
31
5
WORKSPACE_DIR=" /workspaces/spark-template"
You can’t perform that action at this time.
0 commit comments