blob: ebc28f4924b6f56d42d42d81f23672fad1cd1de8 [file] [log] [blame]
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00001#!/bin/bash
2
3#Restart DFC app
4
5docker restart dfc_app
6
7DFC_APP="$(docker ps -q --filter='name=dfc_app')"
8
9
10#Wait for initialization of docker containers for dfc app and all simulators
11for i in {1..10}; do
12if [ $(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
20done