EOX GitLab Instance

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

cache: adding entrypoint

cleanup of unused stuff
parent 49f5a8c5
No related branches found
No related tags found
1 merge request!6Cache native swift
......@@ -63,11 +63,17 @@ ADD configure.sh \
run-seeder.sh \
seeder.py \
mapcache-template.xml \
entrypoint.sh \
/
RUN chmod -v +x \
/configure.sh \
/run-httpd.sh \
/run-seeder.sh
/run-seeder.sh \
/entrypoint.sh
ADD mapcache.xml ${INSTALL_DIR}/
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/run-httpd.sh"]
......@@ -2,6 +2,7 @@
echo "Running configure.sh"
echo "Generating directory for seeding logs"
mkdir -p "${INSTALL_DIR}"
mkdir -p "/cache-db/${COLLECTION}"
chown -R www-data:www-data "${INSTALL_DIR}"
......
#!/bin/bash -e
SERVICES=${WAIT_SERVICES:=''}
if [[ ! -z $SERVICES ]] ; then
for service in $SERVICES ; do
wait-for-it $service
done
fi
eval "$@"
......@@ -12,6 +12,6 @@ apt update
echo "Installing packages"
DEBIAN_FRONTEND=noninteractive apt install -y \
libmapcache1=1.8.0-1~bionic1eox2 libapache2-mod-mapcache=1.8.0-1~bionic1eox2 mapcache-tools=1.8.0-1~bionic1eox2 \
sqlite3 curl apache2 python3-dateutil python3-redis
sqlite3 curl apache2 python3-dateutil python3-redis wait-for-it
rm -rf /var/lib/apt/lists/*
#!/bin/bash -e
/get-token-and-render.sh
/configure.sh
echo "Running cron in background"
service cron start
echo "Running Apache server"
rm -rf /run/apache2/* /var/run/apache2/* /tmp/apache2*
exec /usr/sbin/apache2ctl -D FOREGROUND
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment