#!/bin/sh
set -e

while ! ping -c1 redis &>/dev/null; do :; done && echo "REDIS is UP"
while ! ping -c1 mq &>/dev/null; do :; done && echo "MQ is UP"

cd /app

./initialize.sh

#!/bin/sh
set -e

while ! ping -c1 redis &>/dev/null
do
  echo "REDIS is DOWN"
  sleep 1
done
echo "REDIS is UP"

while ! ping -c1 mq &>/dev/null
do
  echo "MQ is DOWN"
  sleep 1
done
echo "MQ is UP"

cd /app

./initialize.sh

Print debug msg when waiting for Redis and MQ to start
Print debug msg when waiting for Redis and MQ to start

Otherwise you won't know why your docker container isn't starting: it's waiting
for Redis and MQ.
