Update odc_application_dockerfile.txt
This commit is contained in:
parent
8bccb07d36
commit
fdef9fa29c
1 changed files with 11 additions and 7 deletions
|
@ -35,14 +35,18 @@ RUN echo "# Docker Cron Jobs" > /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 \
|
||||||
&& chown nobody:nobody /etc/crontabs/nobody \
|
&& echo "" >> /etc/crontabs/nobody
|
||||||
&& chmod +x /etc/crontabs/nobody
|
|
||||||
|
|
||||||
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/symfony.sh \
|
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \
|
||||||
&& echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/symfony.sh \
|
&& echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
|
||||||
&& echo "php ${WEBDIR}/bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/symfony.sh \
|
&& echo "php ${WEBDIR}/bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/01-symfony.sh \
|
||||||
&& echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/symfony.sh \
|
&& echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
|
||||||
&& chmod +x /docker-entrypoint-init.d/*
|
&& chmod +x /docker-entrypoint-init.d/01-symfony.sh
|
||||||
|
|
||||||
|
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/99-crond.sh \
|
||||||
|
&& echo "# Start crond as daemon via entry script" >> /docker-entrypoint-init.d/99-crond.sh \
|
||||||
|
&& echo "crond -b -l 8" >> /docker-entrypoint-init.d/99-crond.sh \
|
||||||
|
&& chmod +x /docker-entrypoint-init.d/99-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 \
|
||||||
&& unzip artifact.zip -d ${WEBDIR} \
|
&& unzip artifact.zip -d ${WEBDIR} \
|
||||||
|
|
Loading…
Reference in a new issue