mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 21:03:03 +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
|
&& 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
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user