aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
blob: 4bec4ff8f28d1df97bb6c063b834aea56842f1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

#Start DFC app 

docker-compose up -d 

DFC_APP="$(docker ps -q --filter='name=dfc_app')"

#Wait for initialization of docker containers for dfc app and all simulators
for i in {1..10}; do
if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
 then
   echo "DFC app Running"
   break
 else
   echo sleep $i
   sleep $i
 fi 
done