-
Notifications
You must be signed in to change notification settings - Fork 2
/
start-develop.sh
44 lines (38 loc) · 1.5 KB
/
start-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
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
export COMPOSE_PROJECT=codex-develop
baseDir=$(pwd)
# CODEX_REPOS=${CODEX_REPOS:-"codex-keycloak,codex-feasibility-gui,codex-feasibility-backend,codex-flare, codex-aktin-broker"}
CODEX_REPOS=${CODEX_REPOS:-"codex-feasibility-backend,codex-flare, codex-aktin-broker"}
export FLARE_DEBUG=--debug
export CODEX_CONCEPT_TREE_PATH=${CODEX_CONCEPT_TREE_PATH:-"$baseDir/ontology/codex-code-tree.json"}
export CODEX_TERM_CODE_MAPPING_PATH=${CODEX_TERM_CODE_MAPPING_PATH:-"$baseDir/ontology/codex-term-code-mapping.json"}
cp -R codex-gecco-to-ui-profiles/ui-profiles ontology
cp codex-gecco-to-ui-profiles/mapping/TermCodeMapping.json ontology/codex-term-code-mapping.json
cp codex-gecco-to-ui-profiles/mapping/TermCodeTree.json ontology/codex-code-tree.json
for repoName in ${CODEX_REPOS//,/ }
do
curRepo="$baseDir/$repoName"
if [ -d "$curRepo" ]
then
cd $curRepo
echo "docker up $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 up -d
sleep 10
cd ../aktin-client
docker-compose -p $COMPOSE_PROJECT up -d
elif [ "$repoName" == "num-knoten" ]
then
cd fhir-server/blaze-server
docker-compose -p $COMPOSE_PROJECT up -d
else
echo "docker up $curRepo"
docker-compose -p $COMPOSE_PROJECT up -d
fi
fi
done