Skip to content

IBX-12474: Moved Varnish image to Debian 12 (bookworm) - #67

Closed
KamilSznajdrowicz wants to merge 1 commit into
4.6from
ibx-xxxx-fix-varnish-debian-bookworm
Closed

IBX-12474: Moved Varnish image to Debian 12 (bookworm)#67
KamilSznajdrowicz wants to merge 1 commit into
4.6from
ibx-xxxx-fix-varnish-debian-bookworm

Conversation

@KamilSznajdrowicz

@KamilSznajdrowicz KamilSznajdrowicz commented Sep 7, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12474

Related PRs:

Description:

Debian 11 (bullseye) reached end of LTS on 2026-08-31 and its archive is being decommissioned. The package indexes are still published, but individual .deb files are already vanishing from the pools, so the Varnish image build dies mid-apt-get:

E: Failed to fetch .../g/gnupg2/gpgsm_2.2.27-2+deb11u3_amd64.deb  404  Not Found
E: Failed to fetch .../g/gnupg2/gnupg_2.2.27-2+deb11u3_all.deb    404  Not Found
Unable to install GPG! ... Repository installation aborted.

That turns the varnish leg of Browser tests red in every product repository using doc/docker/varnish.yml (e.g. ibexa/commerce#1990). The 404s come and go depending on which Fastly node the runner hits, so re-running a job is a lottery rather than a fix.

What it changes

docker/Dockerfile-varnish, three lines:

  • base image debian:bullseye-slimdebian:bookworm-slim
  • varnish=6.0.12-1~bullseye~bookworm
  • varnish-dev=6.0.12-1~bullseye~bookworm

Runtime (entrypoint, parameters.vcl, real VCL from ibexa/http-cache) is not covered by that local build — CI's varnish leg is the actual check.

For QA:

Nothing to verify manually - this is a build-infrastructure fix. The only meaningful check is a green varnish leg of Browser tests in a product repository once this reaches 4.6 and is merged up (e.g. ibexa/commerce#1990); that leg exercises Varnish and xkey-based cache invalidation end to end. Note that docker/Dockerfile-varnish is not built by this repository's CI, and the red build-and-publish checks here are pre-existing on 4.6 - the same bullseye 404s in the PHP images that #68 addresses.

Documentation:

No documentation required.

🤖 Generated with Claude Code

Debian 11 (bullseye) reached end of LTS on 2026-08-31, and its archive is
now being decommissioned. `deb.debian.org` and `security.debian.org` still
publish the bullseye package indexes, but individual `.deb` files are already
disappearing from the pools, so `apt-get install` fails with a 404 mid-build:

    E: Failed to fetch .../g/gnupg2/gpgsm_2.2.27-2+deb11u3_amd64.deb  404  Not Found
    E: Failed to fetch .../g/gnupg2/gnupg_2.2.27-2+deb11u3_all.deb    404  Not Found
    Unable to install GPG! ... Repository installation aborted.

This breaks the `varnish` leg of Browser tests in every product repository
that uses `doc/docker/varnish.yml`. The 404s come and go depending on which
Fastly node the runner hits, so re-running the job is a lottery rather than
a fix.

Varnish 6.0 LTS is unchanged - `varnish`/`varnish-dev` 6.0.12 are published
for bookworm as well, so only the base OS moves here.

Verified locally (`docker build --platform linux/amd64`):
 - the packagecloud script installs GPG and the Varnish repo without 404s
 - all build dependencies resolve on bookworm
 - `varnish-modules` 0.15.0 still compiles, `libvmod_xkey.so` is installed
 - resulting image reports Debian 12 with `varnish 6.0.12-1~bookworm`

The same change is needed on 5.0 and 6.0, where the file is identical.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@KamilSznajdrowicz KamilSznajdrowicz changed the title IBX-XXXX: Moved Varnish image to Debian 12 (bookworm) IBX-12474: Moved Varnish image to Debian 12 (bookworm) Sep 8, 2026
@KamilSznajdrowicz

Copy link
Copy Markdown
Contributor Author

Closed due to a similar solution already being implemented here: #68

@KamilSznajdrowicz
KamilSznajdrowicz deleted the ibx-xxxx-fix-varnish-debian-bookworm branch September 8, 2026 10:01
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