blob: ec82d8af4e00fe64f811d80796e9bb3b40f540eb [file] [log] [blame]
Instrumental97083ef2018-04-25 15:22:38 -05001#!/bin/bash
Instrumental1e3be602018-10-03 19:40:44 -05002#
3# This is only called from HEAT, as it needs a single check and wait for Cassandra to be ready
4#
Instrumentalbc299c02018-09-25 06:42:31 -05005. drun.sh
Instrumental4ad47632018-07-13 15:49:26 -05006
Instrumental1e3be602018-10-03 19:40:44 -05007echo "Waiting for Cass to be initialized"
8for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
9 docker exec -it aaf_cass bash aaf_cmd wait 2> /dev/null
10 if [ "$?" -ne "0" ]; then
11 echo "Container not ready... Sleep 10"
12 sleep 10
13 else
14 echo "aaf_cass is ready"
15 break
16 fi
17done
18
Instrumentala05704f2018-09-17 13:58:02 -050019