From d7fbb2a9da345b698e49011ecea931a41489d144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Apr 2017 00:25:43 +0200 Subject: [PATCH] added success messages when waiting services can access other servers --- containers/zammad-railsserver/docker-entrypoint.sh | 4 +++- containers/zammad-scheduler/docker-entrypoint.sh | 2 ++ containers/zammad-websocket/docker-entrypoint.sh | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/containers/zammad-railsserver/docker-entrypoint.sh b/containers/zammad-railsserver/docker-entrypoint.sh index 7e84d61..db20f54 100644 --- a/containers/zammad-railsserver/docker-entrypoint.sh +++ b/containers/zammad-railsserver/docker-entrypoint.sh @@ -4,10 +4,12 @@ if [ "$1" = 'zammad-railsserver' ]; then # wait for postgres process coming up on zammad-postgresql until (echo > /dev/tcp/zammad-postgresql/5432) &> /dev/null; do - echo "zammad waiting for postgresql server to be ready..." + echo "zammad railsserver waiting for postgresql server to be ready..." sleep 5 done + echo "railsserver can access postgresql server now..." + cd ${ZAMMAD_DIR} bundle exec rake db:migrate &> /dev/null diff --git a/containers/zammad-scheduler/docker-entrypoint.sh b/containers/zammad-scheduler/docker-entrypoint.sh index 97d2238..a0bda5a 100644 --- a/containers/zammad-scheduler/docker-entrypoint.sh +++ b/containers/zammad-scheduler/docker-entrypoint.sh @@ -7,6 +7,8 @@ if [ "$1" = 'zammad-scheduler' ]; then sleep 2 done + echo "scheduler can access raillsserver now..." + # start scheduler cd ${ZAMMAD_DIR} bundle exec script/scheduler.rb run diff --git a/containers/zammad-websocket/docker-entrypoint.sh b/containers/zammad-websocket/docker-entrypoint.sh index 4cf5493..c5e82af 100644 --- a/containers/zammad-websocket/docker-entrypoint.sh +++ b/containers/zammad-websocket/docker-entrypoint.sh @@ -7,6 +7,8 @@ if [ "$1" = 'zammad-websocket' ]; then sleep 5 done + echo "websocket server can access raillsserver now..." + cd ${ZAMMAD_DIR} bundle exec script/websocket-server.rb -b 0.0.0.0 start fi