Repository navigation
[!!!][TASK] Stop building bootstrap, base, base-app and dockerfile-build-env, and run the CI on the runners - #662
Merged
Kanti merged 1 commit intoNov 23, 2026
Conversation
This was referenced Nov 23, 2026
Kanti
force-pushed
the
task/drop-build-env-and-base-images
branch
from
November 23, 2026 08:18
6d7f9af to
4a6aa24
Compare
Kanti
force-pushed
the
task/drop-build-env-and-base-images
branch
from
November 23, 2026 08:23
4a6aa24 to
25cc2f4
Compare
…ild-env, and run the CI on the runners webdevops/dockerfile-build-env was base-app:ubuntu-22.04 with Docker, git and make, the container in which every image job of the CI ran. The GitHub runners for amd64 and arm64 have Docker, Buildx, git and make themselves, and the jobs that run on them already (validation, checks of ci/, image test runner) show that; the image jobs now run there too and no longer pull the build environment first. dockerfile-build-env was the only image here that built on bootstrap, base and base-app; the PHP images build on the official PHP images and bring the same layers themselves. So these four images are no longer built. Their last images stay on Docker Hub without updates; conf/dockerhub.yml lists them as discontinued, with webdevops/php or an official image plus the helper scripts of webdevops/toolbox as replacement. What the PHP images still use stays: provisioning/base and base-app, the templates of the layers (without their Ubuntu macros) and the traits of the image tests. The tests of docker-service and dnsmasq, which only BaseTest used, now run in PhpTest. conf/console.yml sets no tag as latest any more (autoLatestTag: ~).
Kanti
force-pushed
the
task/drop-build-env-and-base-images
branch
from
November 23, 2026 08:31
25cc2f4 to
5b2d521
Compare
|
Kanti
marked this pull request as ready for review
November 23, 2026 09:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Why
Every image job of
.github/workflows/build.yamlran incontainer: webdevops/dockerfile-build-env:webdevops/base-app:ubuntu-22.04plusdocker-cefrom Docker's apt repository,gitandmake(andcontainer-structure-testuntil #661). The GitHub runners have all of that themselves:ubuntu-24.04(amd64): Docker 28.0.4, Docker Buildx 0.39.0, make 4.3, Git 2.56 (runner image).ubuntu-24.04-arm(arm64): Docker, Docker Buildx, make and Git (partner runner image).The jobs that already run directly on the runners use exactly these:
image-test-runner(checkout,docker/setup-buildx-action,docker/build-push-action,actions/upload-artifact) on both architectures, "Validate Automation" (make generate) and "Check ci/" (make check) onubuntu-latest. The container cost every image job a pull of about 270 MB (compressed, per architecture) before its first step, 122 jobs per build, and its own build job in every run.dockerfile-build-envwas the only image here that builds onbootstrap,baseandbase-app. The PHP images build on the official PHP images and bring the same layers themselves (template/Dockerfile/images/{bootstrap,base,baseapp}.twig,provisioning/base,provisioning/base-app). Without it, the three Ubuntu 22.04 images were built, tested and published every night only for users outside this repository, on an Ubuntu release whose standard support ends in April 2027.What
Builds on #661 (stack: #661 → this); it needs nothing else. It was first stacked on #660, #658 and #657 too. On the rebase onto #661 alone, the docs that this pull request changed in text of those pull requests (the section "Logs", the cron output) came out; whichever of #657, #667 and #658 merges first, this pull request then drops their mentions of
bootstrap,base,base-appand Ubuntu on its next rebase.make generateand the checks ofci/(352 PHPUnit tests, PHPStan) pass.GithubJobBuilderno longer setscontainerfor the image jobs;.github/workflows/build.yamlregenerated. No step changes:.ci-oci-image/...,.ci-image-test-runner/...), the same in a container and on the runner; the comment ofgetCiImagePath()explained them with the container and is shortened.make test-image-runmounts/var/run/docker.sock, the socket of the runner.runner(in the groupdocker) instead ofrootof the container. They write only into the checkout (artifacts, the OCI layout, the archive of the test runner) and into the Docker daemon;docker/login-actionkeeps the login of ghcr.io in the home directory of that user.bootstrap,base,base-appanddockerfile-build-env.docker/bootstrap,docker/base,docker/base-app,docker/dockerfile-build-envremoved, and with them their 8 jobs (build and publish).conf/provision.yml: the entriesbaseandbase-appremoved.provisioning/baseandprovisioning/base-appstay; the entryphpmaps them into the PHP images.template/Dockerfile/images/{bootstrap,base,baseapp}.twig: the macrosubuntu()removed, which only the removed images used.debian()andalpine()stay for the PHP images.conf/console.yml:autoLatestTag: ~. The tagubuntu-22.04, published aslatesttoo, was only built for these images; the PHP images have nolatesttag.FileReader::autoLatestTag()takes~for "no tag" (a missing or empty value is still an error).conf/dockerhub.yml: the four move frombuilttodiscontinued, last built in November 2026. Replacement on Docker Hub:webdevops/php:8.5forbaseandbase-app,ubuntu:22.04forbootstrap, each with the section ofdocs/discontinued-images.md; none fordockerfile-build-env, which only this repository used. The page oftoolboxsays thatwebdevops/php, notbootstrap, copies its scripts, and that your own images can too.make generaterewrote the Docker Hub pages.Images/BootstrapTest.php,BaseTest.php,BaseAppTest.php,DockerfileBuildEnvTest.php,Checks/BuildEnvChecks.phpandChecks/CliWithoutApplicationUserChecks.php(onlybasehad no userapplication) removed. The traits of the layers (BootstrapChecks,BaseChecks,BaseAppChecks,EntrypointChecks,ServiceChecks, ...) stay; the PHP test classes use them, and their comments no longer name the removed images.AdditionalServicesChecks(docker-service install,enableandstart) andDnsmasqEnvironmentChecks(VIRTUAL_HOST,SERVICE_DNSMASQ_OPTS,SERVICE_DNSMASQ_USER) only ran inBaseTest. They run inPhpTestnow, so these features of the PHP images stay tested.AdditionalServicesCheckstests the services that the image does not run already: inphpdnsmasq,postfixandssh.docs/discontinued-images.md: a section "webdevops/bootstrap, webdevops/base and webdevops/base-app" (all tags) in place of the one on theiralpinetags, and one onwebdevops/dockerfile-build-env.docs/images/base.mdremoved;docs/README.md: the table of images, the Mermaid diagram, the list of discontinued images.docs/customization.md,docs/environment-variables.md,docs/known-issues.md: no more rows and notes forbootstrap,base,base-appand Ubuntu (cliasrootinbase, the services and locales ofbase, cron and syslog inbaseandbase-appfrom [BUGFIX] Send the remaining logs of the services to the container log #657 and [FEATURE] Add cron jobs with CRONJOB_<NAME> variables, without an image build #658, "Debian and Ubuntu" for cron and its output, "all exceptbootstrapandtoolbox" is now "all excepttoolbox"); a migration note indocs/known-issues.md.CONTRIBUTING.md: the image jobs run onubuntu-24.04andubuntu-24.04-arm, without a container; the baselayout scripts still handle Ubuntu, for your own images.AGENTS.md: the list of discontinued images, and another example of images that differ in what they inherit.Changes for existing users
webdevops/bootstrap,webdevops/baseandwebdevops/base-app(tagsubuntu-22.04andlatest) get no new builds. Their last images stay on Docker Hub without updates, including security fixes. Pulls on Docker Hub so far:base345,118,bootstrap187,476,base-app95,259.baseorbase-app: build onwebdevops/php:8.5(Debian 12) orwebdevops/php:8.5-alpine. They have the same entrypoint,supervisord,docker-service,docker-cronjob,docker-run-bootstrap, the userapplicationwith/appand the tools ofbase-app; they also run PHP-FPM, cron and syslog-ng, whichdocker-service disableswitches off.clirunsCLI_SCRIPTasapplication, not asrootas inbase.bootstrap: an official image with the helper scripts copied fromwebdevops/toolbox(COPY --from=webdevops/toolbox ...), asbootstrapdid.toolboxis still built.webdevops/dockerfile-build-env(latest) gets no new builds. Building and testing the images needs Docker, git and make, on your machine or on a GitHub runner.Tests
PHPUnit tests of
ci/:FileReaderTest::testNoTagIsPublishedAsLatestWithoutAutoLatestTag(new): withautoLatestTag: ~, no image gets alatestalias, andwebdevops/base:lateststays as written.GithubJobBuilderTest::testBuildAndPublishJob: the image job has nocontainer.ImageTestsTest: another example for an image with tests, asbase-apphas none any more.Image tests:
PhpTestwithAdditionalServicesChecksandDnsmasqEnvironmentChecks:testAdditionalServiceStarts(dnsmasq,postfix,ssh) andtestDnsmasqWithVirtualHostsFromTheEnvironmentphp:8.5with the changes of [BUGFIX] Send the remaining logs of the services to the container log #657, [FEATURE] Add cron jobs with CRONJOB_<NAME> variables, without an image build #658 and [FEATURE] Size PHP-FPM to the CPUs and memory of the container and raise the production defaults #660testPhpVersionandtestImagickReportsItsVersionof the older published image)php:8.5(published)php:8.5-alpine(published)apkcannot reach the Alpine mirrors over HTTPS in this environment (TLS: server certificate not trusted)On
php:8.5-alpinewith the CA of this environment mounted,docker-service enableandstartofdnsmasq,postfixandsshwork anddocker-service checkreportsokfor each;VIRTUAL_HOST=app.image-test.exampleresolves to127.0.0.1. The CI has no such proxy.How it was verified
ci/console generateleaves no change;.github/workflows/build.yamlhas 61 image jobs (and their publish jobs), none with acontainer. The PHPUnit tests ofci/(352) pass, PHPStan (level 8) and Rector with the configuration ofci/find nothing.docker/setup-buildx-action,docker/build-push-action(load: true, OCI export),actions/download-artifactandactions/upload-artifact(as inimage-test-runner);docker load,docker push,docker/login-action(Docker);make test-image-run(make, Docker).webdevops/php:8.5and8.5-alpinehave/entrypoint,supervisord,docker-service,docker-cronjob,docker-run-bootstrap,apt-installorapk-install,go-replace,gosu, the userapplicationwith/appdocs/discontinued-images.mdbuilt from both, thencommand -v,id application,ls -ld /appuid=1000(application) gid=1000(application),/appofapplicationbase-appBaseAppChecks(zip,unzip,bzip2,nslookup,ssh,rsync,git,patch;spongeon Debian)docker-service disable php-fpm,cron,syslogleave no service runningsupervisorctl status: every programSTOPPED Not started; the script in/bootstrap.dranclirunsCLI_SCRIPTasapplicationBaseAppChecks::testCliRunsTheCliScriptAsTheApplicationUserbootstrapin an official imageubuntu:22.04withCOPY --from=webdevops/toolboxapt-install rsyncinstalled/usr/bin/rsync, the script in/bootstrap.dran and was deleted,gosu nobody id -unprintsnobody