Commit Graph

28 Commits

Author SHA1 Message Date
Tianon Gravi
545a73c970 Update comment format to match our other inline comments 2019-04-23 14:31:59 -07:00
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
4ac9fae8a9 Update to 7.1.28 2019-04-04 22:16:22 +00:00
Docker Library Bot
a5cc6ff7d8 Update to 7.1.27 2019-03-07 13:47:49 +00: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
Joe Ferguson
640a30e8ff Apply 'remove extensions/*.a' to templates and run update.sh 2019-02-14 16:30:31 -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
Docker Library Bot
0f189799b7 Update to 7.1.26 2019-01-10 19:46:09 +00:00
Docker Library Bot
4fa4c526cf Update to 7.1.25 2018-12-07 00:14:00 +00: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
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
Tianon Gravi
e6a51689ce Adjust permissions on Apache directories for running as an arbitrary user 2018-11-12 15:51:08 -08:00
yosifkit
189782763e
Merge pull request #740 from cdaguerre/cdaguerre-patch-1
Fix hardcoded ini dir
2018-11-09 13:07:48 -08:00
Christian Daguerre
d5bdcd6f8c
fix hardcoded ini dir 2018-11-09 10:21:18 +01:00
Docker Library Bot
a232c4ca6f Update to 7.1.24 2018-11-08 19:46:15 +00:00
Docker Library Bot
3f3220a0aa Update to 7.1.23 2018-10-11 18:52:35 +00:00
Docker Library Bot
c856411d1c Update to 7.1.22 2018-09-14 01:10:51 +00:00
Tianon Gravi
88189f0168 Ship PHP's example "php.ini-production" and "php.ini-development" files in "$PHP_INI_DIR" 2018-08-27 15:26:42 -07:00
Docker Library Bot
74b59e1cf7 Update to 7.1.21 2018-08-20 18:46:11 +00:00
Docker Library Bot
d6b950cc18 Update to 7.1.20 2018-07-20 12:47:25 +00:00
Docker Library Bot
b599d7375c Update to 7.1.19 2018-06-25 18:46:10 +00:00
Tianon Gravi
b250a22ce6 Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
Also, this removes the not-recommended usage of "travis_retry" and adds "gpgconf --kill all".
2018-06-11 17:01:50 -07:00
Tianon Gravi
cff4da8fdb Run "update.sh" to apply changes (and allow CI to test them) 2018-06-11 14:10:01 -07:00
Docker Library Bot
36167a6d68 Update to 7.1.18 2018-05-26 00:46:11 +00:00
Joe Ferguson
78125d0d3c Add missing apache-foreground scripts, swap ssl version for 5.6 on stretch 2018-05-18 10:16:40 -07:00
Joe Ferguson
27c65bbd60 Add docker-php-* scripts for new images 2018-05-18 10:02:33 -07:00
Joe Ferguson
53040bf1b3 Add Dockerfiles for newer base OSs 2018-05-18 10:02:33 -07:00