Add dependency to kafka-setup container for mae-consumer job

This commit is contained in:
Kerem Sahin 2019-09-08 00:56:31 -07:00
parent fea754c5be
commit b82cb7df69
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,5 @@ RUN apt-get update && apt-get install -y wget \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
CMD dockerize -wait tcp://$KAFKA_BOOTSTRAP_SERVER \ CMD dockerize -wait tcp://$KAFKA_BOOTSTRAP_SERVER \
-wait http://$ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT \
-timeout 60s \ -timeout 60s \
elasticsearch-index-job/bin/elasticsearch-index-job elasticsearch-index-job/bin/elasticsearch-index-job

View File

@ -174,6 +174,8 @@ services:
depends_on: depends_on:
- kafka-setup - kafka-setup
- elasticsearch - 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: networks:
default: default: