EOX GitLab Instance

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

core: adding entrypoint to wait for other services

parent 897602a8
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ USER root
RUN apt update && \
apt install -y \
libpq-dev && \
libpq-dev wait-for-it && \
apt autoremove -y && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
......@@ -76,15 +76,20 @@ ADD rgbnir_definition.json \
run-httpd.sh \
run-registrar.sh \
registrar.py \
entrypoint.sh \
/
# run-redis-manager.sh \
# redis-manager.py \
RUN chmod -v +x \
/configure.sh \
/run-registrar.sh \
/run-httpd.sh
/run-httpd.sh \
/entrypoint.sh
# /run-redis-manager.sh
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/run-httpd.sh"]
#!/bin/bash -e
SERVICES=${WAIT_SERVICES:=''}
if [[ ! -z $SERVICES ]] ; then
for service in $SERVICES ; do
wait-for-it $service
done
fi
eval "/opt/eoxserver/eoxserver-entrypoint.sh $@"
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