-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRun.sh
More file actions
executable file
·28 lines (24 loc) · 867 Bytes
/
Run.sh
File metadata and controls
executable file
·28 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# ============ preamble ================== #
set -o errexit
set -o pipefail
set -o nounset
arg=${1:-}
export tdse_server_start_command="npm start -i /home/node/init_urls.csv"
if [ "$arg" = "shell" ]; then
printf "Starting containers for direct manipulation over shell\n"
export tdse_server_start_command="/bin/bash"
{ docker-compose up -d; }
elif [ "$arg" = "debug" ]; then
printf "Starting containers in debug mode\n"
export tdse_server_start_command="npm run debug -i /home/node/init_urls.csv"
{ docker-compose up -d; }
elif [ "$arg" = "test" ]; then
printf "Starting container in testing mode\n"
export tdse_server_start_command="npm test"
{ docker-compose up -d; }
else
printf "Starting containers in productive mode\n"
{ docker-compose up -d; }
fi
printf "Current value of tdse_server_start_command: %s\n" "$tdse_server_start_command"