From de212a710b7768b0a0a5a4a41540ef6e833232ab Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sun, 17 Mar 2019 18:22:10 +0100 Subject: [PATCH] enable apcu on cli --- Dockerfile | 1 + rootfs/etc/cont-init.d/00-nextcloud | 2 ++ rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini | 1 + 3 files changed, 4 insertions(+) create mode 100644 rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini diff --git a/Dockerfile b/Dockerfile index 47b9860..4fe32d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ RUN apk add --no-cache \ nginx \ ffmpeg \ php7-cli \ + php7-pecl-apcu \ php7-opcache \ php7-pcntl \ php7-imagick \ diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index da3f8fa..cd3cd2f 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -45,6 +45,8 @@ s6-setuidgid nginx ./occ app:disable survey_client s6-setuidgid nginx ./occ app:disable systemtags s6-setuidgid nginx ./occ app:disable updatenotification +s6-setuidgid nginx ./occ config:system:set --value '\OC\Memcache\APCu' memcache.local + s6-setuidgid nginx ./occ config:system:set --value "https://$DOMAIN" overwrite.cli.url s6-setuidgid nginx ./occ config:system:set --value "localhost" trusted_domains 0 s6-setuidgid nginx ./occ config:system:set --value "$DOMAIN" trusted_domains 1 diff --git a/rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini b/rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini new file mode 100644 index 0000000..008bcab --- /dev/null +++ b/rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini @@ -0,0 +1 @@ +apc.enable_cli=1