From b82cb7df69801e02418146e8d6a4ea128827f3fb Mon Sep 17 00:00:00 2001 From: Kerem Sahin Date: Sun, 8 Sep 2019 00:56:31 -0700 Subject: [PATCH] Add dependency to kafka-setup container for mae-consumer job --- docker/mae-consumer/Dockerfile | 1 - docker/quickstart/docker-compose.yml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/mae-consumer/Dockerfile b/docker/mae-consumer/Dockerfile index bd6d977749..0d463c38b5 100644 --- a/docker/mae-consumer/Dockerfile +++ b/docker/mae-consumer/Dockerfile @@ -16,6 +16,5 @@ RUN apt-get update && apt-get install -y wget \ && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz CMD dockerize -wait tcp://$KAFKA_BOOTSTRAP_SERVER \ - -wait http://$ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT \ -timeout 60s \ elasticsearch-index-job/bin/elasticsearch-index-job \ No newline at end of file diff --git a/docker/quickstart/docker-compose.yml b/docker/quickstart/docker-compose.yml index b888ab4b45..cf908abf5a 100644 --- a/docker/quickstart/docker-compose.yml +++ b/docker/quickstart/docker-compose.yml @@ -174,6 +174,8 @@ services: depends_on: - kafka-setup - elasticsearch + command: "bash -c 'while ping -c1 kafka-setup &>/dev/null; do echo waiting for kafka-setup... && sleep 1; done; \ + echo kafka-setup done! && ./elasticsearch-index-job/bin/elasticsearch-index-job'" networks: default: