From 52d7f2e33418b57de538092cba6018da9e16b3bd Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Mon, 6 Aug 2018 10:09:47 +0200 Subject: [PATCH 1/2] Enable apcu for cli calls Signed-off-by: Tilo Spannagel --- Dockerfile-alpine.template | 2 ++ Dockerfile-debian.template | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 6eabcf84..6a453171 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -76,6 +76,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index a11f62f1..ca113a43 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -87,6 +87,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www From 547abbdce72facebbcda5bd77e4dc429b20a0524 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Mon, 6 Aug 2018 10:12:58 +0200 Subject: [PATCH 2/2] Run update.sh Signed-off-by: Tilo Spannagel --- 12.0/apache/Dockerfile | 2 ++ 12.0/fpm-alpine/Dockerfile | 2 ++ 12.0/fpm/Dockerfile | 2 ++ 13.0/apache/Dockerfile | 2 ++ 13.0/fpm-alpine/Dockerfile | 2 ++ 13.0/fpm/Dockerfile | 2 ++ 14.0-beta/apache/Dockerfile | 2 ++ 14.0-beta/fpm-alpine/Dockerfile | 2 ++ 14.0-beta/fpm/Dockerfile | 2 ++ 9 files changed, 18 insertions(+) diff --git a/12.0/apache/Dockerfile b/12.0/apache/Dockerfile index 77b8ef4e..1459353d 100644 --- a/12.0/apache/Dockerfile +++ b/12.0/apache/Dockerfile @@ -88,6 +88,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/12.0/fpm-alpine/Dockerfile b/12.0/fpm-alpine/Dockerfile index 16e43ba4..7cc1fccb 100644 --- a/12.0/fpm-alpine/Dockerfile +++ b/12.0/fpm-alpine/Dockerfile @@ -77,6 +77,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/12.0/fpm/Dockerfile b/12.0/fpm/Dockerfile index 1ba8c1fc..065d97c3 100644 --- a/12.0/fpm/Dockerfile +++ b/12.0/fpm/Dockerfile @@ -88,6 +88,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/13.0/apache/Dockerfile b/13.0/apache/Dockerfile index ace5fdfc..d1a37830 100644 --- a/13.0/apache/Dockerfile +++ b/13.0/apache/Dockerfile @@ -88,6 +88,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/13.0/fpm-alpine/Dockerfile b/13.0/fpm-alpine/Dockerfile index e6e8e710..019b1e10 100644 --- a/13.0/fpm-alpine/Dockerfile +++ b/13.0/fpm-alpine/Dockerfile @@ -77,6 +77,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/13.0/fpm/Dockerfile b/13.0/fpm/Dockerfile index aff6fe01..107b5609 100644 --- a/13.0/fpm/Dockerfile +++ b/13.0/fpm/Dockerfile @@ -88,6 +88,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/14.0-beta/apache/Dockerfile b/14.0-beta/apache/Dockerfile index 81f6414e..1d6b41fc 100644 --- a/14.0-beta/apache/Dockerfile +++ b/14.0-beta/apache/Dockerfile @@ -88,6 +88,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/14.0-beta/fpm-alpine/Dockerfile b/14.0-beta/fpm-alpine/Dockerfile index ff97e7ab..a0ad1456 100644 --- a/14.0-beta/fpm-alpine/Dockerfile +++ b/14.0-beta/fpm-alpine/Dockerfile @@ -77,6 +77,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www diff --git a/14.0-beta/fpm/Dockerfile b/14.0-beta/fpm/Dockerfile index e434e76c..6d4a511f 100644 --- a/14.0-beta/fpm/Dockerfile +++ b/14.0-beta/fpm/Dockerfile @@ -88,6 +88,8 @@ RUN { \ echo 'opcache.revalidate_freq=1'; \ } > /usr/local/etc/php/conf.d/opcache-recommended.ini; \ \ + echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \ + \ mkdir /var/www/data; \ chown -R www-data:root /var/www; \ chmod -R g=u /var/www