distroless icon indicating copy to clipboard operation
distroless copied to clipboard

Support for Debian13

Open huww98 opened this issue 5 months ago • 25 comments

Debian 13 is just around the corner. Any plans to support it? Do you welcome/need community contribution on this?

huww98 avatar Jul 23 '25 10:07 huww98

Hello, we already have someone provisioned for this, but would always like extra hands to review/test as we figure out the new deb13 builds.

loosebazooka avatar Jul 23 '25 14:07 loosebazooka

Hopefully merged-usr is finally supported as discussed in https://github.com/GoogleContainerTools/distroless/issues/1393

gfrankliu avatar Jul 24 '25 07:07 gfrankliu

Hopefully merged-usr is finally supported as discussed in #1393

Yeah that's the goal

loosebazooka avatar Jul 24 '25 11:07 loosebazooka

Hello,

Debian 13 is out, so wanted to ping here just in case:

https://9to5linux.com/debian-13-trixie-is-now-available-for-download-heres-whats-new

Ardakilic avatar Aug 09 '25 20:08 Ardakilic

If required, we can run our product CI on top of those images and report issue if we find some.

We mainly use java21, base-nossl and cc.

davinkevin avatar Aug 13 '25 13:08 davinkevin

This start to become a blocking issue as many language images are using Debian 13, which use glibc 2.41. But Debian 12 use glibc 2.36.

harryzcy avatar Aug 14 '25 04:08 harryzcy

Hopefully merged-usr is finally supported as discussed in #1393

Yeah that's the goal

The functionality is added to rules_distroless already, but not released yet. Can any maintainer cut a new release for it?

harryzcy avatar Aug 14 '25 07:08 harryzcy

Hopefully merged-usr is finally supported as discussed in #1393

Yeah that's the goal

The functionality is added to rules_distroless already, but not released yet. Can any maintainer cut a new release for it?

There is a ticket open but that project seems slow nowadays.

gfrankliu avatar Aug 14 '25 18:08 gfrankliu

Seems sad after months of soft and hard freeze leaving ample time to kink out all build problems that debian13 still isn't supported... why not just publish beta images in advance so the community can help solve problems faster? 🤔

reneleonhardt avatar Aug 15 '25 12:08 reneleonhardt

Perhaps the documentation at https://github.com/GoogleContainerTools/distroless/blob/main/README.md should be updated appropriately to reflect the changes in the relevant PR?

linghengqian avatar Aug 22 '25 13:08 linghengqian

@linghengqian that PR doesn't do any builds, I'm working on that now. I need people to understand that builds will be in preview to determine if there are any quirks that we aren't aware of, particularly when using the merged usr fs.

loosebazooka avatar Aug 22 '25 13:08 loosebazooka

https://github.com/GoogleContainerTools/distroless/pull/1850 should make these availalbe, be aware that images may change until we mark them stable.

loosebazooka avatar Aug 22 '25 17:08 loosebazooka

#1850 should make these availalbe, be aware that images may change until we mark them stable.

Thanks and I added a comment in the PR about mergeduser.

gfrankliu avatar Aug 22 '25 18:08 gfrankliu

I think it's more than just flipping a switch for merged-usr. We have to add in the symlinks at the base level and ensure no one overwrites the symlinks at a higher level. (which isn't hard but needs to be done)

loosebazooka avatar Aug 22 '25 19:08 loosebazooka

Any news with builds from #1841?

filipopo avatar Oct 07 '25 15:10 filipopo

There are no trixie images yet.

curl -s https://gcr.io/v2/distroless/static-debian13/tags/list

Edit: The first images / tags have been pushed, anyone can try if compression libs or something else is missing.

reneleonhardt avatar Oct 07 '25 15:10 reneleonhardt

@reneleonhardt I'm getting Details: libzstd.so.1: cannot open shared object file: No such file or directory on nodejs24-debian13. Is this expected?

baraknaveh avatar Nov 08 '25 19:11 baraknaveh

Yeah whatever your using is depending on that Facebook compression library. Is this just moving from deb 12 to 13?

loosebazooka avatar Nov 08 '25 20:11 loosebazooka

Yes, the only change was nodejs24-debian12 -> nodejs24-debian13.

Was libz statically linked in v12? Thus wasn't explicitly needed?

baraknaveh avatar Nov 08 '25 20:11 baraknaveh

This start to become a blocking issue as many language images are using Debian 13, which use glibc 2.41.

If this is due to compiling artifacts on those images and copying them over to distroless, then perhaps bringing in zig cc/zig c++ would resolve that glibc concern as it can target lower versions of glibc than the build image provides.

If copying over something that was already built from that image (such as a runtime), then the image itself would need to build with a Zig toolchain too?

Last I recall those language images build their runtimes from source so that should be quite possible for them to adopt (but then again Zig still has some issues when it comes to link args support, so depending on context that may not work out and may not be obvious to the maintainers initially).

polarathene avatar Nov 09 '25 03:11 polarathene

Are there any plans how long debian12 will still be supported for java, when debian13 images are stable? 3 months as mentioned in SUPPORT_POLICY.md?

usr42 avatar Dec 01 '25 05:12 usr42

Can we get support for java-base-debian13? I see there's an open pr here https://github.com/GoogleContainerTools/distroless/pull/1899

Sineaggi avatar Dec 01 '25 19:12 Sineaggi

Can we get support for java-base-debian13? I see there's an open pr here #1899

oh yeah I'll try to get that done in the next few days

loosebazooka avatar Dec 02 '25 19:12 loosebazooka

Are there any plans how long debian12 will still be supported for java, when debian13 images are stable? 3 months as mentioned in SUPPORT_POLICY.md?

The support might extend a bit longer for java/python as we work things out.

loosebazooka avatar Dec 02 '25 19:12 loosebazooka

so I think we have all images published except python. There's some more work to do there to figure that bit out, but I think we're good to go. I haven't had any issue reports with debian13 that have not been solved. I'll go ahead and mark these ready for use (with python tbd).

loosebazooka avatar Dec 04 '25 01:12 loosebazooka