Skip to content

README: the dev image has the base extensions, not the WordPress set - #21

Merged
michaelaguiar merged 3 commits into
mainfrom
aliasbot/ali-1111-dev-image-readme
Nov 26, 2026
Merged

michaelaguiar merged 3 commits into
mainfrom
aliasbot/ali-1111-dev-image-readme

Conversation

@michaelaguiar

@michaelaguiar michaelaguiar commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Fixes ALI-1111.

The README said the frankenphp-dev image adds mysqli, gd, exif, imagick, redis, igbinary and soap. php/*/frankenphp/Dockerfile.dev installs no PHP extensions, and never has (checked its history back to the first commit). Those seven come from Dockerfile.wordpress, and so are in wordpress-dev too.

Why the README changes, not the Dockerfile

  • The base Dockerfile keeps a minimal "Tier 1" set and says backend extensions belong in a derived image; Dockerfile.wordpress adds them as "Tier 2", noting imagick's CVE history as the reason it isn't in the base. A Laravel app in production runs on the base image, so a dev image without them matches production.
  • Ingot, the main consumer, already picks -frankenphp-wordpress-dev for WordPress projects and -frankenphp-dev for everything else, so nothing that needs the WordPress set uses dev.
  • .github/scripts/smoke-test.sh already checks dev against the base extension list, so no script change is needed.

If dev should carry the extensions after all, that's a Dockerfile change for all four versions plus a smoke-test change; say so on the ticket.

Changes

  • dev: describes what it really adds (git, npm, OPcache revalidation on every request) and says it has the base extensions only. (PHP_DISABLE_FUNCTIONS is already empty in the base image, so clearing it in dev changes nothing; the README now says it only for wordpress-dev.)
  • wordpress: now lists the seven extensions itself instead of pointing at dev.
  • wordpress-dev: new bullet, so the variant that does have the extensions for local work is documented, and a matching column in the image matrix.

README only; no image is rebuilt (the build workflow runs on pushes to main and only for changed Dockerfiles).

Dockerfile.dev has never installed PHP extensions; the seven the README
listed come from Dockerfile.wordpress. Describe what dev really adds,
move the extension list to the wordpress variant, and list
wordpress-dev as the dev image that has them.

Refs ALI-1111
CI builds and publishes wordpress-dev for 8.2-8.5, and the variants
list now points local WordPress work at it, so the matrix lists it too.

Refs ALI-1111
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 1 (fresh-context reviewer). The code-review skill was called but ran against the wrong directory (the session's start directory, not this worktree), so its output was discarded and the reviewer reviewed the diff by hand.

  • P3: the image matrix had no wordpress-dev column, though the variants list now points at it. Fixed in 582baa6.
  • P3: Ingot sends every non-WordPress project to -frankenphp-dev, so a Laravel or Drupal project that needs gd or imagick doesn't get it locally. Not changed here: those projects lack them in production on the base image too, and whether Ingot (or dev) should offer them is a separate decision. Left open on the ticket.
  • PR body: the "Tier 2" and imagick wording is in Dockerfile.wordpress, not the base Dockerfile. Corrected the body.
  • Pre-existing, not in scope: php/8.5/frankenphp/Dockerfile.dev is FROM ...:8.5-frankenphp-latest, the others FROM ...:<ver>-frankenphp. CI points both names at the commit's -<sha> tag, so builds aren't affected.

Confirmed: every README claim about dev, wordpress and wordpress-dev matches all four versions' Dockerfiles; Dockerfile.dev has never installed an extension; smoke-test.sh already checks dev against the base list.

…press-dev tag

The base image already leaves PHP_DISABLE_FUNCTIONS empty, so clearing
it only matters in wordpress-dev, which undoes the wordpress image's
exec ban. Move the note there, mark wordpress-dev as local-only and give
its tag.

Refs ALI-1111
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 2 (fresh-context reviewer; code-review ran on this PR). No P1 or P2. Wording only:

  • P3: the dev bullet said it clears PHP_DISABLE_FUNCTIONS, but the base image already leaves it empty, which suggested the base disables the exec family. Fixed in c4bb056: the note moved to wordpress-dev, where it does undo the wordpress image's ban.
  • P3: the wordpress-dev bullet didn't say it re-enables exec and the rest. Fixed in c4bb056, and marked local-only.
  • P3: the wordpress-dev bullet gave no tag. Fixed in c4bb056 (8.4-frankenphp-wordpress-dev).
  • A "dev never had these extensions" note repeated the earlier decline with no new argument; not added.

Confirmed: the new matrix column is accurate (CI builds and publishes wordpress-dev for 8.2–8.5, both architectures) and the table is well-formed. The PR body matches the code.

Stopping the loop here: the last commit is wording only, checked against all four versions' Dockerfiles.

@michaelaguiar
michaelaguiar marked this pull request as ready for review November 26, 2026 16:26
@michaelaguiar
michaelaguiar merged commit eecb581 into main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant