Update odc_application_dockerfile.txt
This commit is contained in:
parent
78886fc4db
commit
fcbe69ddc5
1 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@ RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw
|
||||||
&& chmod +x /distributed_cron.sh
|
&& chmod +x /distributed_cron.sh
|
||||||
|
|
||||||
RUN echo "# Docker Cron Jobs" > /etc/crontabs/nobody \
|
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 "* * * * * 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 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 \
|
&& 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
|
&& chmod +x /docker-entrypoint-init.d/01-symfony.sh
|
||||||
|
|
||||||
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/04-crond.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
|
&& 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 \
|
RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \
|
||||||
|
|
Loading…
Reference in a new issue