From fc71927211782c7c618ddce9fdd71a719cee67ef Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 4 Nov 2026 14:09:42 +0100 Subject: [PATCH] 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 --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index c73d341..4b56bc0 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,19 @@ docker buildx bake docker buildx bake active ``` +### Before you push a rebuilt image + +The base tag `php:-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 🙏 Generate a full Docker Compose boilerplate for any Laravel project: