Commit Graph

807 Commits

Author SHA1 Message Date
Luís Cobucci
e21810a050
Perform graceful stops on PHP-FPM
The default signal used by docker to stop a container is SIGTERM and
that signal is understood by PHP-FPM as immediate termination.

This means that `php-fpm` won't wait for in-flight requests to finish
before of stopping the workers and main process. This behaviour is quite
undesired for production environments and should be avoided as much as
possible.

This implementation is meant to be extremely simple and only address the
stop signal used when running `docker stop`. `php-fpm` signal choices
are somewhat peculiar (`SIGUSR2` for example) and if we want to "fix"
them we would have to use a tool (e.g.: `dumb-init`).

More info:

 - https://linux.die.net/man/8/php-fpm
 - https://docs.docker.com/engine/reference/builder/#stopsignal
 - https://github.com/Yelp/dumb-init
 - https://github.com/usabilla/php-docker-template/pull/102
2019-04-18 17:20:45 +02:00
Docker Library Bot
cf02ea0f79 Update to 7.2.17 2019-04-04 22:16:22 +00:00
Docker Library Bot
4ac9fae8a9 Update to 7.1.28 2019-04-04 22:16:22 +00:00
Docker Library Bot
a5c895da27 Update to 7.3.4 2019-04-04 22:16:22 +00:00
yosifkit
583104eb59
Merge pull request #809 from infosiftr/secure.php.net
Swap "secure.php.net" for "www.php.net" (now that it supports https properly)
2019-04-04 15:15:30 -07:00
Tianon Gravi
9a1758ad35 Swap "secure.php.net" for "www.php.net" (now that it supports https properly) 2019-04-04 13:37:25 -07:00
Docker Library Bot
de645c824f Update to 7.3.4 2019-04-04 12:51:00 +00:00
Docker Library Bot
a5cc6ff7d8 Update to 7.1.27 2019-03-07 13:47:49 +00:00
Docker Library Bot
873725e57e Update to 7.2.16 2019-03-07 13:47:49 +00:00
Docker Library Bot
bb16de8a71 Update to 7.3.3 2019-03-07 13:47:49 +00:00
yosifkit
66395400ad
Merge pull request #799 from infosiftr/apk-virtual
Remove "--virtual" where it's not providing value (and use "apk del --no-network" consistently)
2019-03-05 17:42:09 -08:00
Tianon Gravi
a1ebdc9851 Remove "--virtual" where it's not providing value (and use "apk del --no-network" consistently) 2019-03-04 16:41:05 -08:00
yosifkit
2005b523c6
Merge pull request #796 from glensc/patch-2
remove extensions/*.a
2019-02-15 16:41:09 -08:00
Joe Ferguson
640a30e8ff Apply 'remove extensions/*.a' to templates and run update.sh 2019-02-14 16:30:31 -08:00
Elan Ruusamäe
135678e1ef
remove extensions/*.a
the .a are build artifact from libtool; these are not used in any way.
2019-02-12 15:19:24 +02:00
Docker Library Bot
52c62d3afb Update to 7.2.15 2019-02-07 13:51:14 +00:00
Docker Library Bot
3c64c61733 Update to 7.3.2 2019-02-07 13:51:14 +00:00
Tianon Gravi
5f2b9c2d60 Adjust base image exclusion in generate-stackbrew-library.sh 2019-02-04 15:28:35 -08:00
Tianon Gravi
22f1373e68
Merge pull request #786 from J0WI/alpine-3.9
Add Alpine 3.9 variant
2019-02-01 16:52:16 -08:00
J0WI
90beb19f38 Add Alpine 3.9 variant 2019-02-01 13:37:56 -08:00
Tianon Gravi
e9320fdb75 Revert "Update to 5.6.40" (this removes the EOL 5.6 series)
This reverts commit 783878384a.
2019-02-01 13:36:53 -08:00
yosifkit
fab49d4cb1
Merge pull request #787 from infosiftr/arbitrary-user-AGAIN
Adjust "/var/www/html" permissions consistently across variants
2019-01-31 16:47:29 -08:00
Tianon Gravi
ea377551f7 Adjust "/var/www/html" permissions consistently across variants
The issue speaks for itself:

```console
$ docker run --rm php:apache ls -ld /var/www/html
drwxrwxrwx 2 www-data www-data 4096 Jan 22 21:56 /var/www/html

$ docker run --rm php:fpm ls -ld /var/www/html
drwxr-xr-x 2 root root 4096 Jan 22 22:10 /var/www/html
```
2019-01-31 14:45:15 -08:00
yosifkit
ecd7dcc69c
Merge pull request #775 from infosiftr/5.6.40
Update to 5.6.40
2019-01-11 16:54:47 -08:00
Tianon Gravi
783878384a Update to 5.6.40 2019-01-11 15:31:57 -08:00
Docker Library Bot
0f189799b7 Update to 7.1.26 2019-01-10 19:46:09 +00:00
Docker Library Bot
c44aab7001 Update to 7.2.14 2019-01-10 13:46:08 +00:00
Docker Library Bot
1eb2c0ab51 Update to 7.3.1 2019-01-10 13:46:08 +00:00
yosifkit
c4b05f9f68
Merge pull request #773 from infosiftr/reaxe-7.0
Re-remove 7.0 (and associated scripting bits for 7.0 and 5.6)
2019-01-04 15:32:09 -08:00
Tianon Gravi
c32a9f63da Re-remove 7.0 (and associated scripting bits for 7.0 and 5.6) 2019-01-04 15:06:24 -08:00
yosifkit
0e5c984e02
Merge pull request #763 from bashkarev/master
Increase log limit
2018-12-31 16:38:18 -08:00
Tianon Gravi
26ab6801ff Minor adjustment so it doesn't apply to older 7.x releases 2018-12-31 15:53:21 -08:00
bashkarev
f171ee0424 Increase log limit 2018-12-31 15:53:16 -08:00
Tianon Gravi
6932d118b7
Merge pull request #768 from infosiftr/no-more-5.6
Remove 5.6 as it is end of life today!
2018-12-31 15:45:58 -08:00
Joe Ferguson
2408ff5a5a Remove 5.6 as it is end of life today! 2018-12-31 15:11:55 -08:00
Docker Library Bot
c88c3d52f4 Update to 7.2.13 2018-12-07 00:14:01 +00:00
Docker Library Bot
4fa4c526cf Update to 7.1.25 2018-12-07 00:14:00 +00:00
Docker Library Bot
b4319e8f76 Update to 7.0.33 2018-12-07 00:13:59 +00:00
Docker Library Bot
fa4ef89d7c Update to 5.6.39 2018-12-07 00:13:58 +00:00
Tianon Gravi
a280ab8e87 Update to 7.3.0 (GA) 2018-12-06 12:26:43 -08:00
yosifkit
8c2d252053
Merge pull request #760 from docker-library/revert-759-bye-bye-bye
Revert "Remove end of life PHP 7.0"
2018-12-05 11:59:08 -08:00
Tianon Gravi
fab636c9e6
Revert "Remove end of life PHP 7.0" 2018-12-05 11:54:50 -08:00
Tianon Gravi
3fcf5a3561
Merge pull request #759 from infosiftr/bye-bye-bye
Remove end of life PHP 7.0
2018-12-04 14:34:30 -08:00
Joe Ferguson
f2575bc94f Remove end of life PHP 7.0
https://secure.php.net/supported-versions.php
2018-12-04 14:01:24 -08:00
yosifkit
724912d52e
Merge pull request #755 from infosiftr/fix-apache-log-permissions-for-arbitrary-user
Fix Apache "log directory" permissions for arbitrary user support
2018-11-27 13:23:10 -08:00
Tianon Gravi
c77c579341 Fix Apache "log directory" permissions for arbitrary user support
Tested successfully with both of (separately) `--user x:y --sysctl ...` and `-e APACHE_RUN_USER=x -e APACHE_RUN_GROUP=y` (and without any parameters, of course).
2018-11-26 16:50:37 -08:00
Docker Library Bot
ee78d78832 Update to 7.3.0RC6 2018-11-22 13:46:19 +00:00
yosifkit
67efd89c36
Merge pull request #747 from infosiftr/gpg-batch
Update "gpg" invocations to use "--batch"
2018-11-14 14:46:24 -08:00
Tianon Gravi
b99209cc07 Update "gpg" invocations to use "--batch"
See https://bugs.debian.org/913614
2018-11-14 12:44:19 -08:00
yosifkit
fbebf2e62d
Merge pull request #745 from infosiftr/fix-apache-permissions
Adjust permissions on Apache directories for running as an arbitrary user
2018-11-13 15:26:51 -08:00