mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 12:52:13 +00:00
Add dependency to kafka-setup container for mae-consumer job
This commit is contained in:
parent
fea754c5be
commit
b82cb7df69
@ -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
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user