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