EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 5e46ad5b authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Adding optional timeout parameter to service waiting

parent fb8a588a
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -e
SERVICES=${WAIT_SERVICES:=''}
TIMEOUT=${WAIT_TIMEOUT:='15'}
if [[ ! -z $SERVICES ]] ; then
for service in $SERVICES ; do
wait-for-it $service
wait-for-it -t $TIMEOUT $service
done
fi
......
......@@ -42,7 +42,6 @@ RUN apt update && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip3 install . && \
pip3 install python-keystoneclient python-swiftclient redis
......@@ -76,6 +75,7 @@ ADD rgbnir_definition.json \
run-httpd.sh \
run-registrar.sh \
registrar.py \
mapcache_items_view.sql \
entrypoint.sh \
/
......
#!/bin/bash -e
SERVICES=${WAIT_SERVICES:=''}
TIMEOUT=${WAIT_TIMEOUT:='15'}
if [[ ! -z $SERVICES ]] ; then
for service in $SERVICES ; do
wait-for-it $service
wait-for-it -t $TIMEOUT $service
done
fi
......
#!/bin/bash -e
SERVICES=${WAIT_SERVICES:=''}
TIMEOUT=${WAIT_TIMEOUT:='15'}
if [[ ! -z $SERVICES ]] ; then
for service in $SERVICES ; do
wait-for-it $service
wait-for-it -t $TIMEOUT $service
done
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment