From fcbe69ddc5de4cc96f179da7c02dfa8efe60bd33 Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sat, 16 Nov 2024 23:46:55 +0100 Subject: [PATCH] Update odc_application_dockerfile.txt --- odc_application_dockerfile.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 \