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
873725e57e
Update to 7.2.16
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
Docker Library Bot
52c62d3afb
Update to 7.2.15
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
c44aab7001
Update to 7.2.14
2019-01-10 13:46:08 +00:00
Docker Library Bot
c88c3d52f4
Update to 7.2.13
2018-12-07 00:14:01 +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
Christian Daguerre
d5bdcd6f8c
fix hardcoded ini dir
2018-11-09 10:21:18 +01:00
Docker Library Bot
985de7a6d4
Update to 7.2.12
2018-11-08 13:46:12 +00:00
Docker Library Bot
f363b9f8a0
Update to 7.2.11
2018-10-11 18:52:35 +00:00
Docker Library Bot
d97098c8c6
Update to 7.2.10
2018-09-13 12:46:16 +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
e92dfe4847
Update to 7.2.9
2018-08-17 00:46:13 +00:00
Tianon Gravi
c53a180b78
Swap from "sid" to "buster" and slightly adjust the implementation to match the templating
2018-08-10 14:32:01 -07:00
Tim Düsterhus
e1a4affaa5
Install libargon2 from sid
...
see: https://github.com/docker-library/php/pull/677#issuecomment-408555320
see: https://travis-ci.org/docker-library/php/jobs/411259094
2018-08-05 01:35:28 +02:00
Tim Düsterhus
edf4f2f316
Enable argon2 for alpine 3.8+
2018-08-01 14:10:41 +02:00
Tim Düsterhus
1fdbc537ba
Install libargon2 from buster
2018-08-01 14:10:41 +02:00
Docker Library Bot
85af0c14e3
Update to 7.2.8
2018-07-19 12:46:09 +00:00
Docker Library Bot
4af0a8734a
Update to 7.2.7
2018-06-21 18:46:15 +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
cf54827241
Update to 7.2.6
2018-05-25 06:46:13 +00:00
Tianon Gravi
b045ba7c51
Add "--enable-option-checking=fatal" to ./configure invocations
2018-04-30 13:06:26 -07:00
yosifkit
fbb775a087
Merge pull request #627 from infosiftr/disable-hash
...
Add "--with-mhash"
2018-04-27 10:45:55 -07:00
Tianon Gravi
1df2501817
Switch to "--with-mhash" instead (to break less users)
2018-04-26 13:45:14 -07:00
Docker Library Bot
f427847237
Update to 7.2.5
2018-04-26 12:46:09 +00:00
Tianon Gravi
f504394473
Fix a few superficial issues with "docker-php-ext-enable"
2018-04-19 12:51:31 -07:00
Docker Library Bot
c4f059d09d
Update to 7.2.4
2018-03-31 18:46:09 +00:00
yosifkit
7707290c53
Merge pull request #605 from infosiftr/shared-sodium
...
Update sodium extension to be shared (so it can be replaced if necessary by users)
2018-03-21 13:34:44 -07:00
Tianon Gravi
fe07cedc05
Update/fix PHPIZE_DEPS comment
...
Closes #597
2018-03-21 11:23:32 -07:00
Tianon Gravi
604dfc0baf
Update sodium extension to be shared (so it can be replaced if necessary by users)
2018-03-21 11:10:03 -07:00
Docker Library Bot
35aedb2900
Update to 7.2.3
2018-03-03 19:46:09 +00:00
Joe Ferguson
fd8e15250a
Add libsodium to 7.2+
2018-02-05 16:06:59 -08:00
Docker Library Bot
b4e5b2b22a
Update to 7.2.2
2018-02-02 01:46:11 +00:00
boite
57b41cfc2d
Allow FPM pool to listen on IPv4 when v6 disabled
...
In PHP 7.2.0 a change [1] was made in response to bug [#74166 ] to fall
back to listening on 0.0.0.0 if IPv6 is disabled (for example with
ipv6.disable=1 Linux kernel param) instead of failing to create a
listening socket with the error "Address family not supported by
protocol (97)".
A fallback to IPv4 in such circumstances is only possible in PHP >=
7.2.0 and by specifying a port number without an address to the listen
directive.
[1]: b63c45c69e
[#74166 ]: https://bugs.php.net/bug.php?id=74166
2018-01-18 11:40:00 +00:00
Docker Library Bot
f4baf0edbc
Update to 7.2.1
2018-01-06 01:02:02 +00:00
yosifkit
32313ea407
Merge pull request #556 from infosiftr/better-lib-preservation
...
Update Debian "libs preserving" code to match Alpine (using "ldd" and "apt-mark" to auto-determine necessary dependencies)
2018-01-03 12:21:33 -08:00
Tianon Gravi
b418908d2f
Update Debian "libs preserving" code to match Alpine (using "ldd" and "apt-mark" to auto-determine necessary dependencies)
2018-01-03 10:55:13 -08:00
J0WI
0e056693f2
Be less verbose during extension installation ( fix #319 )
2018-01-01 19:50:55 +01:00
Tianon Gravi
6677546d59
Remove errant extra space character
2017-12-18 14:21:03 -08:00
Tianon Gravi
9596aeb358
Add a link to the PR for future travellers
2017-12-13 17:32:36 -08:00
Tianon Gravi
dbd5d1e03d
Block the installation of Debian's PHP packages
...
This will hopefully help folks with the confusion around installing packages like "php-apcu" and then wondering why they don't actually "work" (because they pull in Debian's PHP, and that's not what this image packages).
2017-12-13 16:14:37 -08:00
Tianon Gravi
1a00d92ff4
Switch from "nm" to "readelf" so that we can detect the "zend_extension_entry" symbol even in stripped objects
2017-12-08 16:25:01 -08:00
Claude Khedhiri
f795769559
Updated PHP 7.2-RC-6 to released
2017-11-30 15:25:21 +01:00