distroless icon indicating copy to clipboard operation
distroless copied to clipboard

Python 3.8 base

Open peake100 opened this issue 4 years ago • 8 comments

Recently moved over to distroless for my Go services and am very pleased with the results. Would love to start poking around the experimental python versions.

I noticed that the current python3 distroless image is based on python 3.7. I was wondering if there were plans to support python 3.8, as most of my services are currently written with 3.8 compatibility in mind, and with python 3.9 getting close to release it seems like it might be a nice option to have.

Thank you!

peake100 avatar Aug 09 '20 22:08 peake100

This repo is primarily maintained and driven by the community (the users) and thus welcomes external contributions. I would be interested in seeing how the community decides the direction and implementation, or if it will be implemented eventually.

I usually see it takes time before a sufficient number of people gather to amass a sizable momentum to make this kind of work go forward.

chanseokoh avatar Aug 10 '20 14:08 chanseokoh

I think #614 will make a big difference to the ease of implementing this feature request. Why? Because the current package system is geared towards stable packages, and python 3.8 is only packaged in sid/unstable.

It is possible to take that PR branch, update python to 3.8.6 and glibc to 2.31 and build a python 3.8 image. That said, folks may not be keen on using an "unstable" package in production. Which means this feature request would be blocked on Bullseye being released and supported here.

Caveat: I haven't tested it extensively, but was able to run a Hug API with a SQLite backend on my mac via docker.

ghost avatar Nov 15 '20 00:11 ghost

Any updates on this? Possibly for 3.9? We're running into real issues with backwards compatibility and have to switch the image to another distro just because of this 😞 I concur that having an unstable or sid tag would be great here, to avoid stability issues.

dinvlad avatar Feb 10 '21 19:02 dinvlad

Same here. I have a project that requires Python 3.8, but I also want to use the distroless image, which is not possible at the moment.

Raidenkyu avatar Feb 23 '21 23:02 Raidenkyu

Tried the ragawan/python-distroless images ?

creatorrr avatar Apr 26 '21 07:04 creatorrr

What about fetchy/python:3.8, why it's not working in the same way as Google's one?

Dogrtt avatar Apr 28 '21 17:04 Dogrtt

Is anyone working on this? I was thinking if it's possible to do something similar to what's done with nodejs so distroless doesn't need to rely on Debian packages to install python like the official docker images don't.

The issue is Python doesn't provide binaries, only the source code. I wonder whether is possible or makes sense to compile Python with Bazel.

ericofusco avatar Jul 08 '21 23:07 ericofusco

Another vote to have different versions of python 3 available for distroless. Thanks in advance!

jasonwillschiu avatar Aug 26 '21 14:08 jasonwillschiu