Skip to content

Commit 3856e8d

Browse files
authored
Merge pull request #7 from devilbox/release-0.6
Add option to customize PHP-FPM configuration
2 parents 199efdc + 116edfb commit 3856e8d

29 files changed

Lines changed: 273 additions & 33 deletions

Dockerfiles/base/data/php-fpm.d/pool.conf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
[www]
22

3-
; User and Group
4-
user = devilbox
5-
group = devilbox
6-
7-
; Ensure to listen here
8-
listen = 9000
9-
10-
; Keep env variables set by docker
11-
clear_env = no
12-
13-
; Ensure worker stdout and stderr are sent to the main error log.
14-
catch_workers_output = yes
15-
163
; Pool config
174
pm = dynamic
185
pm.max_children = 5

Dockerfiles/mods/Dockerfile-5.4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ RUN set -x \
234234
${RUN_DEPS} \
235235
&& rm -rf /var/lib/apt/lists/* \
236236
&& update-ca-certificates \
237-
&& find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true
237+
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
238238

239239

240240
###

Dockerfiles/mods/Dockerfile-5.5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ RUN set -x \
236236
${RUN_DEPS} \
237237
&& rm -rf /var/lib/apt/lists/* \
238238
&& update-ca-certificates \
239-
&& find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true
239+
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
240240

241241

242242
###

Dockerfiles/mods/Dockerfile-5.6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ RUN set -x \
238238
${RUN_DEPS} \
239239
&& rm -rf /var/lib/apt/lists/* \
240240
&& update-ca-certificates \
241-
&& find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true
241+
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
242242

243243

244244
###

Dockerfiles/mods/Dockerfile-7.0

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ ENV BUILD_DEPS \
4040
libib-util \
4141
firebird-dev \
4242
libicu-dev \
43+
bison \
4344
libldap2-dev \
4445
libsasl2-dev \
4546
libmcrypt-dev \
@@ -55,7 +56,6 @@ ENV BUILD_DEPS \
5556
libpq-dev \
5657
libsqlite3-dev \
5758
libpq-dev \
58-
libssl-dev \
5959
libpspell-dev \
6060
libedit-dev \
6161
libreadline-dev \
@@ -174,7 +174,6 @@ RUN set -x \
174174
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \
175175
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) opcache \
176176
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pcntl \
177-
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo \
178177
&& ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \
179178
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \
180179
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_firebird \
@@ -189,7 +188,6 @@ RUN set -x \
189188
&& cd build && ./install \
190189
&& docker-php-ext-enable phalcon \
191190
&& cd / && rm -rf /tmp/phalcon \
192-
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) phar \
193191
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) posix \
194192
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pspell \
195193
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) readline \
@@ -244,7 +242,7 @@ RUN set -x \
244242
${RUN_DEPS} \
245243
&& rm -rf /var/lib/apt/lists/* \
246244
&& update-ca-certificates \
247-
&& find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true
245+
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
248246

249247

250248
###
@@ -325,8 +323,6 @@ RUN set -x \
325323
&& php-fpm -m | grep -oiE '^Zend Opcache$' \
326324
&& php -m | grep -oiE '^pcntl$' \
327325
&& php-fpm -m | grep -oiE '^pcntl$' \
328-
&& php -m | grep -oiE '^pdo$' \
329-
&& php-fpm -m | grep -oiE '^pdo$' \
330326
&& php -m | grep -oiE '^pdo_dblib$' \
331327
&& php-fpm -m | grep -oiE '^pdo_dblib$' \
332328
&& php -m | grep -oiE '^pdo_firebird$' \
@@ -341,8 +337,6 @@ RUN set -x \
341337
&& php-fpm -m | grep -oiE '^pgsql$' \
342338
&& php -m | grep -oiE '^phalcon$' \
343339
&& php-fpm -m | grep -oiE '^phalcon$' \
344-
&& php -m | grep -oiE '^phar$' \
345-
&& php-fpm -m | grep -oiE '^phar$' \
346340
&& php -m | grep -oiE '^posix$' \
347341
&& php-fpm -m | grep -oiE '^posix$' \
348342
&& php -m | grep -oiE '^pspell$' \

Dockerfiles/mods/Dockerfile-7.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ RUN set -x \
244244
${RUN_DEPS} \
245245
&& rm -rf /var/lib/apt/lists/* \
246246
&& update-ca-certificates \
247-
&& find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true
247+
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
248248

249249

250250
###

Dockerfiles/mods/Dockerfile-7.2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ RUN set -x \
246246
${RUN_DEPS} \
247247
&& rm -rf /var/lib/apt/lists/* \
248248
&& update-ca-certificates \
249-
&& find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true
249+
&& sh -c "find /usr/local -type f -perm /u+x -exec strip --strip-all '{}' + || true"
250250

251251

252252
###

Dockerfiles/prod/Dockerfile-5.4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ COPY ./data/supervisord.conf /etc/supervisor/supervisord.conf
5858
### Volumes
5959
###
6060
VOLUME /etc/php-custom.d
61+
VOLUME /etc/php-fpm-custom.d
6162
VOLUME /etc/php-modules.d
6263
VOLUME /var/log/php
6364
VOLUME /var/mail

Dockerfiles/prod/Dockerfile-5.5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ COPY ./data/supervisord.conf /etc/supervisor/supervisord.conf
5858
### Volumes
5959
###
6060
VOLUME /etc/php-custom.d
61+
VOLUME /etc/php-fpm-custom.d
6162
VOLUME /etc/php-modules.d
6263
VOLUME /var/log/php
6364
VOLUME /var/mail

Dockerfiles/prod/Dockerfile-5.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ COPY ./data/supervisord.conf /etc/supervisor/supervisord.conf
5858
### Volumes
5959
###
6060
VOLUME /etc/php-custom.d
61+
VOLUME /etc/php-fpm-custom.d
6162
VOLUME /etc/php-modules.d
6263
VOLUME /var/log/php
6364
VOLUME /var/mail

0 commit comments

Comments
 (0)