BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | #Start DFC app | ||||
4 | |||||
5 | docker-compose up -d | ||||
6 | |||||
7 | DFC_APP="$(docker ps -q --filter='name=dfc_app')" | ||||
8 | |||||
9 | #Wait for initialization of docker containers for dfc app and all simulators | ||||
10 | for i in {1..10}; do | ||||
11 | if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ] | ||||
12 | then | ||||
13 | echo "DFC app Running" | ||||
14 | break | ||||
15 | else | ||||
16 | echo sleep $i | ||||
17 | sleep $i | ||||
18 | fi | ||||
19 | done | ||||
20 |