Skip to content

Commit 1ca5aea

Browse files
committed
And generate variants Dockerfile with update script
1 parent d49f1ef commit 1ca5aea

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

22/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

22/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

23/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

23/fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

24/apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN set -ex; \
2020
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
2121
ENV PHP_MEMORY_LIMIT 512M
2222
ENV PHP_UPLOAD_LIMIT 512M
23+
ENV PHP_PM_MAX_CHILDREN 16
2324
RUN set -ex; \
2425
\
2526
savedAptMark="$(apt-mark showmanual)"; \
@@ -105,6 +106,7 @@ RUN { \
105106
echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
106107
echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
107108
echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
109+
echo 'pm.max_children = ${PHP_PM_MAX_CHILDREN}'; \
108110
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
109111
\
110112
mkdir /var/www/data; \

0 commit comments

Comments
 (0)