Repository navigation
chore: upgrade to ubuntu 26.04 - #24267
Conversation
Upgrade the dogfood Coder Docker image from Ubuntu 22.04 (Jammy) to Ubuntu 26.04 LTS (Resolute Raccoon). Key changes: - Base image: ubuntu:jammy -> ubuntu:resolute - APT sources: adapt to DEB822 format (ubuntu.sources instead of sources.list) - Package renames: exa -> eza, helix -> hx, postgresql-16 -> postgresql-18 - Docker CE: pin updated from 5:27.* to 5:29.* (resolute packages) - PPAs removed: ansible, fish, git, helix, neovim are now available in Ubuntu 26.04 default repos with current versions - HashiCorp apt repo: uses noble (no resolute repo yet; compatible) - PostgreSQL PGDG: updated to resolute-pgdg - unminimize: now installed as a package (no longer pre-installed in Ubuntu 26.04 minimal images) - Removed unused PPA keyring files and update-keys.sh entries
Ubuntu 26.04 ships a pre-created 'ubuntu' user at UID 1000. Remove it first so useradd can create 'coder' with that UID.
johnstcn
left a comment
There was a problem hiding this comment.
I'm in favour in general of updating from jammy, but I'd rather us jump to noble rather than resolute (which AFAICT isn't even released yet?)
FWIW, noble also ships with the newer glibc version
|
it isn't fully released yet, but it is april 2026. 26.04 seems to be on track, the rc cut is in a few days, and the stable release is in like a week and a half. to me, it feels worth the tiny bit of corner cutting in order to not need to do another upgrade later. if we really want, we could even just wait to merge this until after the rc or stable cut. I don't think it's a huge rush. I would definitely prefer to merge it asap but I can be patient if others think it is worth waiting. |
johnstcn
left a comment
There was a problem hiding this comment.
I'd suggest we
- publish it as an entirely new image
- make it the 'new default'
- allow folks to use the older image as a fallback in case they encounter issues
johnstcn
left a comment
There was a problem hiding this comment.
Changes look good to me. Interested to try out the new image!
Adds a Dogfood image option based on Ubuntu 26.04 to the Coder on Coder template.
...and includes a small update to the
build_imageCI step to allow building all of the images in parallel, rather than sequentially.Original description from Coder Agents with some more details on the specifics
Changes
Base image
ubuntu:jammy→ubuntu:resolute(bothgobuild stage and final stage)APT sources
ubuntu.sourcesinstead ofsources.list) — mirrorsedcommand updated accordinglyjammy→resolute(Docker CE 29.x now available for resolute)jammy-pgdg→resolute-pgdgjammy→noble(noresoluterepo available yet; noble packages are compatible)Package changes
exa→eza(exa is abandoned; eza is the maintained fork)helix→hx(package renamed in Ubuntu 26.04 repos)postgresql-16→postgresql-18(Ubuntu 26.04 ships pg18 natively)/usr/lib/postgresql/16/to/usr/lib/postgresql/18/PPAs removed
Ubuntu 26.04 default repos now ship current versions of packages that previously required PPAs:
Removed:
ppa.listentries, associated GPG keyring files, andupdate-keys.shentries.Other
5:27.*to5:29.*unminimizeinstalled as a package (no longer pre-installed in Ubuntu ≥24.10 minimal images)Decision log
nobleinstead ofresolute: HashiCorp's apt repo does not yet publishresolutepackages. Tested and confirmed thatnoblepackages install correctly on resolute. This can be updated once HashiCorp adds resolute support.