Commit Graph

11 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
a5c895da27 Update to 7.3.4 2019-04-04 22:16:22 +00:00
Docker Library Bot
de645c824f Update to 7.3.4 2019-04-04 12:51:00 +00:00
Docker Library Bot
bb16de8a71 Update to 7.3.3 2019-03-07 13:47:49 +00:00
Joe Ferguson
640a30e8ff Apply 'remove extensions/*.a' to templates and run update.sh 2019-02-14 16:30:31 -08:00
Docker Library Bot
3c64c61733 Update to 7.3.2 2019-02-07 13:51:14 +00: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
Docker Library Bot
1eb2c0ab51 Update to 7.3.1 2019-01-10 13:46:08 +00: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
a280ab8e87 Update to 7.3.0 (GA) 2018-12-06 12:26:43 -08:00