-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathrunDev.sh
More file actions
executable file
·36 lines (33 loc) · 940 Bytes
/
runDev.sh
File metadata and controls
executable file
·36 lines (33 loc) · 940 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
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
COMPOSE_FILE="compose.dev.yaml"
COMMANDS="start|stop|build|flags|start-load|start-all"
if [[ $# < 1 ]]
then
echo "Provide one of [${COMMANDS}]"
exit 1
fi
case $1 in
"start")
docker compose -f $COMPOSE_FILE up --detach frontendreverseproxy contentcreator engine
;;
"stop")
docker compose -f $COMPOSE_FILE down --remove-orphans
;;
"build")
# $@ should always pass build and then all images that should be build if any are specified
docker compose -f $COMPOSE_FILE "$@"
;;
"flags")
docker compose -f $COMPOSE_FILE up --detach feature-flag-service
;;
"start-load")
docker compose -f $COMPOSE_FILE up --detach frontendreverseproxy contentcreator engine loadgen
;;
"start-all")
docker compose -f $COMPOSE_FILE up --detach
;;
*)
echo "Unknown command [$1] use one of [${COMMANDS}]"
exit 1
;;
esac