Skip to content

Switch from Ubuntu to Debian#292

Merged
yosifkit merged 1 commit intodocker-library:masterfrom
infosiftr:debian
Jan 14, 2026
Merged

Switch from Ubuntu to Debian#292
yosifkit merged 1 commit intodocker-library:masterfrom
infosiftr:debian

Conversation

@tianon
Copy link
Member

@tianon tianon commented Jan 14, 2026

Specifically, from Ubuntu Jammy (22.04; EOL in 2027) to Debian Bookworm (12; EOL in 2028).

Ideally we would upgrade to Debian Trixie (13; EOL in 2030), but that gets us too new of a Python for cqlsh 😔

@tianon
Copy link
Member Author

tianon commented Jan 14, 2026

This is somewhat of an indirect way to help resolve #290 (and issues like it), since the Debian base images are proactively rebuilt specifically to explicitly cause downstream rebuilds (unlike Ubuntu).

I also couldn't find an official recommendation (or dis-recommendation) for a base distribution from the upstream project, so this seems OK from an upstream perspective.

All the old "jammy" labelled tags will stay available (just no longer "supported"), so if this ends up causing any breakage, there's a trivial escape hatch while the root cause is found and resolved / worked around.

@tianon
Copy link
Member Author

tianon commented Jan 14, 2026

$ diff -u <(bashbrew cat cassandra) <(bashbrew cat <(./generate-stackbrew-library.sh))
--- /dev/fd/63	2026-01-13 16:03:29.169381190 -0800
+++ /dev/fd/62	2026-01-13 16:03:29.169381190 -0800
@@ -1,17 +1,17 @@
 Maintainers: Tianon Gravi <admwiggin@gmail.com> (@tianon), Joseph Ferguson <yosifkit@gmail.com> (@yosifkit)
 GitRepo: https://github.com/docker-library/cassandra.git
 
-Tags: 5.0.6, 5.0, 5, latest, 5.0.6-jammy, 5.0-jammy, 5-jammy, jammy
+Tags: 5.0.6, 5.0, 5, latest, 5.0.6-bookworm, 5.0-bookworm, 5-bookworm, bookworm
 Architectures: amd64, arm32v7, arm64v8, ppc64le, s390x
-GitCommit: 6d75217eb8c69b8d9dd94766b781d829a56fbd2d
+GitCommit: d37a249ee6979d56bf8b47105fc38b7461bfcfa5
 Directory: 5.0
 
-Tags: 4.1.10, 4.1, 4, 4.1.10-jammy, 4.1-jammy, 4-jammy
+Tags: 4.1.10, 4.1, 4, 4.1.10-bookworm, 4.1-bookworm, 4-bookworm
 Architectures: amd64, arm32v7, arm64v8, ppc64le, s390x
-GitCommit: 793ea6b2a8097d629252fe77585775443b53e4c3
+GitCommit: d37a249ee6979d56bf8b47105fc38b7461bfcfa5
 Directory: 4.1
 
-Tags: 4.0.19, 4.0, 4.0.19-jammy, 4.0-jammy
+Tags: 4.0.19, 4.0, 4.0.19-bookworm, 4.0-bookworm
 Architectures: amd64, arm32v7, arm64v8, ppc64le, s390x
-GitCommit: 23531063a5aefaa47cbd5166c7d02ae75c44c262
+GitCommit: d37a249ee6979d56bf8b47105fc38b7461bfcfa5
 Directory: 4.0

Specifically, from Ubuntu Jammy (22.04; EOL in 2027) to Debian Bookworm (12; EOL in 2028).

Ideally we would upgrade to Debian Trixie (13; EOL in 2030), but that gets us too new of a Python for `cqlsh` 😔
@tianon
Copy link
Member Author

tianon commented Jan 14, 2026

Ideally we would upgrade to Debian Trixie (13; EOL in 2030), but that gets us too new of a Python for cqlsh 😔

Somewhat ironically, the server works just fine (I mean, it's "just" Java, after all), but the client tools (cqlsh and nodetool) do not, so that's kind of a deal breaker for upgrading further than this. 😞

}
}
}
'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love the idea of expanding the hacky scraping of the Dockerfile for data when we could improve versions.json so that it could be used for both templates and generate-stackbrew-library.sh, but I guess that is something for further improvement later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are all stolen from drupal (so that I could avoid boiling the ocean) 😅

https://github.com/docker-library/drupal/blob/d0d1fa9bac4c3b654b9c3958ed7fb4c18c90c2c0/generate-stackbrew-library.sh#L61

@yosifkit
Copy link
Member

The switch to Ubuntu was driven by necessity rather than choice (#199). Debian is our distro of choice.

@yosifkit yosifkit merged commit 7c5b127 into docker-library:master Jan 14, 2026
5 checks passed
@yosifkit yosifkit deleted the debian branch January 14, 2026 22:50
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jan 14, 2026
tianon pushed a commit to docker-library/official-images that referenced this pull request Jan 14, 2026
Changes:

- docker-library/cassandra@7c5b127: Switch from Ubuntu to Debian (docker-library/cassandra#292)
- docker-library/cassandra@a02e9c1: Remove more dead code

Co-authored-by: Docker Library Bot <doi+docker-library-bot@docker.com>
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.

2 participants

Comments