docs: check the PECL extensions of a rebuilt image before pushing it
The php base tag isn't pinned, and a pecl install that fails only prints a NOTICE, so a rebuild can succeed without redis or imagick and break every app on the tag at its next restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2d6d6383de
commit
fc71927211
13
README.md
13
README.md
|
|
@ -73,6 +73,19 @@ docker buildx bake
|
||||||
docker buildx bake active
|
docker buildx bake active
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Before you push a rebuilt image
|
||||||
|
|
||||||
|
The base tag `php:<version>-fpm` isn't pinned, and a PECL extension that fails to
|
||||||
|
build only prints a `NOTICE` (Dockerfile, the `pecl install … || echo` lines). So a
|
||||||
|
rebuild can succeed without redis or imagick, and every app on that tag breaks at
|
||||||
|
its next restart. Before `docker push`, count the PECL extensions in the new image
|
||||||
|
and compare with the image it replaces:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --rm --entrypoint php blaxsoftware/laravel:laravel11 -m | grep -cE '^(redis|ev|igbinary|imagick)$'
|
||||||
|
# 4 on PHP 8.4. A newer PHP may lack one by design; the count must never be lower than the previous image of the same tag.
|
||||||
|
```
|
||||||
|
|
||||||
## plug-n-pray 🙏
|
## plug-n-pray 🙏
|
||||||
|
|
||||||
Generate a full Docker Compose boilerplate for any Laravel project:
|
Generate a full Docker Compose boilerplate for any Laravel project:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue