blob: c79467a470c4e5fd335c4e31d8692c3353b6dc7b [file] [log] [blame]
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00001#!/bin/bash
2
TamasBakaie81736c2019-08-23 13:31:57 +00003#Restart DFC app
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00004
TamasBakaie81736c2019-08-23 13:31:57 +00005docker restart dfc_app0
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00006
TamasBakaie81736c2019-08-23 13:31:57 +00007DFC_APP="$(docker ps -q --filter='name=dfc_app0')"
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00008
9
BjornMagnussonXA90b09742019-04-16 12:10:40 +000010#Wait for initialization of docker container for dfc app
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +000011for 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