Instrumental | 97083ef | 2018-04-25 15:22:38 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Instrumental | 1e3be60 | 2018-10-03 19:40:44 -0500 | [diff] [blame] | 2 | # |
| 3 | # This is only called from HEAT, as it needs a single check and wait for Cassandra to be ready |
| 4 | # |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 5 | . drun.sh |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 6 | |
Instrumental | 1e3be60 | 2018-10-03 19:40:44 -0500 | [diff] [blame] | 7 | echo "Waiting for Cass to be initialized" |
| 8 | for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 9 | $DOCKER exec -it aaf_cass bash aaf_cmd wait 2> /dev/null |
Instrumental | 1e3be60 | 2018-10-03 19:40:44 -0500 | [diff] [blame] | 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 |
| 17 | done |
| 18 | |
Instrumental | a05704f | 2018-09-17 13:58:02 -0500 | [diff] [blame] | 19 | |