Setup cron

This commit is contained in:
Tilo Spannagel 2018-02-27 18:44:59 +01:00
parent c4788d0867
commit e61317d318
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
4 changed files with 44 additions and 20 deletions

View File

@ -1,10 +1,16 @@
FROM php:7.1-fpm-alpine FROM php:7.1-fpm-alpine
# entrypoint.sh dependencies # entrypoint.sh and cron.sh dependencies
RUN apk add --no-cache \ RUN set -ex; \
\
apk add --no-cache \
bash \ bash \
coreutils \ coreutils \
rsync rsync \
; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html

View File

@ -1,10 +1,16 @@
FROM php:7.1-fpm-alpine FROM php:7.1-fpm-alpine
# entrypoint.sh dependencies # entrypoint.sh and cron.sh dependencies
RUN apk add --no-cache \ RUN set -ex; \
\
apk add --no-cache \
bash \ bash \
coreutils \ coreutils \
rsync rsync \
; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html

View File

@ -1,10 +1,16 @@
FROM php:7.1-fpm-alpine FROM php:7.1-fpm-alpine
# entrypoint.sh dependencies # entrypoint.sh and cron.sh dependencies
RUN apk add --no-cache \ RUN set -ex; \
\
apk add --no-cache \
bash \ bash \
coreutils \ coreutils \
rsync rsync \
; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html

View File

@ -1,10 +1,16 @@
FROM php:7.1-%%VARIANT%% FROM php:7.1-%%VARIANT%%
# entrypoint.sh dependencies # entrypoint.sh and cron.sh dependencies
RUN apk add --no-cache \ RUN set -ex; \
\
apk add --no-cache \
bash \ bash \
coreutils \ coreutils \
rsync rsync \
; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
# install the PHP extensions we need # install the PHP extensions we need
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html