forked from num-codex/codex-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stop-develop.sh
34 lines (30 loc) · 899 Bytes
/
stop-develop.sh
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
#!/bin/sh
export COMPOSE_PROJECT=codex-develop
CODEX_REPOS=${CODEX_REPOS:-"codex-keycloak,codex-feasibility-gui,codex-feasibility-backend,codex-flare"}
baseDir=$(pwd)
for repoName in ${CODEX_REPOS//,/ }
do
curRepo="$baseDir/$repoName"
if [ -d "$curRepo" ]
then
cd $curRepo
if [ "$repoName" == "codex-processes-ap2" ]
then
echo "codex-processes-ap2"
elif [ "$repoName" == "codex-aktin-broker" ]
then
cd aktin-broker
docker-compose -p $COMPOSE_PROJECT stop
sleep 10
cd ../aktin-client
docker-compose -p $COMPOSE_PROJECT stop
elif [ "$repoName" == "num-knoten" ]
then
cd fhir-server/blaze-server
docker-compose -p $COMPOSE_PROJECT stop
else
echo "docker up $curRepo"
docker-compose -p $COMPOSE_PROJECT stop
fi
fi
done