Commit 02961f9c authored by Felix Delattre's avatar Felix Delattre
Browse files

Introduced wait-for-it to check for messaging bus

parent bd787292
......@@ -24,7 +24,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
python-celery-common \
git \
python3 \
python3-pip
python3-pip \
wait-for-it
# Get the-engine code
RUN cd /srv && git clone https://gitext.gfz-potsdam.de/dynamicexposure/the-engine/the-engine.git
......@@ -42,4 +43,4 @@ RUN apt-get autoremove --yes $build_dependencies && apt-get autoremove --yes &&
# Set up start script
COPY ./files/start.sh /usr/local/bin
CMD /usr/local/bin/start.sh
CMD wait-for-it $THE_ENGINE_MESSAGE_BUS_HOST:$THE_ENGINE_MESSAGE_BUS_PORT -- /usr/local/bin/start.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment