GoogleContainerTools / distroless

🥑 Language focused docker images, minus the operating system.
Apache License 2.0
18.99k stars 1.16k forks source link

support python 3.10 #1133

Open mrchypark opened 2 years ago

mrchypark commented 2 years ago

now distroless python3 is 3.9 version.

any plan to python 3.10 support?

or, How can I build python 3.10 image for personal use?

loosebazooka commented 2 years ago

is 3.10 is on debian11, we can swap about 3.9 for 3.10

mrchypark commented 2 years ago

@loosebazooka good news :)

loosebazooka commented 2 years ago

Sorry that was a question... is it?

mrchypark commented 2 years ago

Oh, you question to me about python 3.10 is on debian11?

I don't know. let's find out.

mrchypark commented 2 years ago

maybe not yet. just unstable and test suite support.

https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=python3.10

ericofusco commented 2 years ago

Debian is always behind with python in stable. It would be great if distroless ships python independently without relying on Debian releases (Similar to what's done with Node), so we could have the latest patches and multiple releases (3.9, 3.10).

The limitation is that python doesn't provide any binaries, need to compile.

@loosebazooka I wonder if it would be doable to build python from source in the CI environment and maintain something with bazel. I'm happy to give it a try if possible.

It needs gcc and some source packages to build few common dependencies.

ReillyBrogan commented 2 years ago

Sounds to me like it should be the responsibility of the Python project to add distroless variants of all of their supported Python versions given that they already support a wide matrix of Python versions on most common distribution images. Otherwise all you're doing is pushing a lot of maintenance and testing onto the Distroless developers when the Python project already has significant CI and tooling setup around supporting their existing images.

loosebazooka commented 2 years ago

That would be nice. Python support is still in experimental because we have to do a few weird things to get it to work. Thats not to say it's not up to date.. it is. The build is just a bit strange. If we could get someone from the python project to help out, it would be very nice.

dlorenc commented 2 years ago

Shameless plug, but the Python wolfi image is built with python 3.10: https://github.com/wolfi-dev/os/blob/main/python3.yaml

You can try it at cgr.dev/chainguard-images/python

goncafab commented 1 year ago

Any update regarding this? We'd also like to migrate to 3.10 but not having to do a custom implementation moving away from the "official" distroless images.

Corfucinas commented 1 year ago

It would be amazing to have support for 3.10 and 3.11

dlorenc commented 1 year ago

The architecture of this repo/project means that they can't really ship versions that aren't already in debian. Bookworm is shipping 3.10, but this repo is still on bullseye.

The alternative here: https://github.com/chainguard-images/images/tree/main/images/python/configs based on Wolfi instead of debian is currently shipping 3.11 but we're working on support for multiple versions at once. Please let me know if you want to try that or run into any issues. The image is at cgr.dev/chainguard/python

snorfalorpagus commented 1 year ago

https://github.com/GoogleContainerTools/distroless/issues/1337

Debian 12 (Bookworm) has been released, and it looks like it ships with Python 3.11.

https://packages.debian.org/bookworm/python3

ding-ma commented 1 year ago

I have been building python 3.9 to 3.11 containers with deadsnake python releases. They are meant for ubuntu but they are perfectly compatible with debian

HoangNguyen689 commented 1 month ago

Any updates on when will the python 3.12 be supported?