diff --git a/odc_application_dockerfile.txt b/odc_application_dockerfile.txt index 76eeec1..9e17614 100644 --- a/odc_application_dockerfile.txt +++ b/odc_application_dockerfile.txt @@ -39,6 +39,7 @@ RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw && chmod +x /distributed_cron.sh RUN echo "# Docker Cron Jobs" > /etc/crontabs/nobody \ + && echo "SHELL=/bin/sh" >> /etc/crontabs/nobody \ && echo "* * * * * curl http://localhost:8080/health/check > /dev/null > 2>&1" >> /etc/crontabs/nobody \ && echo "0 1 * * * curl https://open-datenschutzcenter.de/health/check > /dev/null > 2>&1" >> /etc/crontabs/nobody \ && echo "0 9 * * 1-5 /bin/sh /distributed_cron.sh '${WEBDIR}/data/cron_log' 'php ${WEBDIR}/bin/console app:cron' >/dev/null 2>&1" >> /etc/crontabs/nobody \ @@ -51,7 +52,7 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \ && chmod +x /docker-entrypoint-init.d/01-symfony.sh RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/04-crond.sh \ - && echo "crond -f &" >> /docker-entrypoint-init.d/04-crond.sh \ + && echo "crond -c /etc/crontabs/nobody -f &" >> /docker-entrypoint-init.d/04-crond.sh \ && chmod +x /docker-entrypoint-init.d/04-crond.sh RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \