-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework python3 on debian12 #1415
Conversation
loosebazooka
commented
Sep 29, 2023
- removes shell
- removes support for ctypes
- brings python3 out of experimental for debian12
0c9bba6
to
d8fcce5
Compare
d8fcce5
to
9f73d66
Compare
@evanj @lathama would you have a minute to test these images before merging this pr? add oci_tarball rule --- a/python3/BUILD
+++ b/python3/BUILD
@@ -124,3 +124,9 @@ DISTRO_VERSION = {
for arch in ARCHITECTURES
for distro in DISTROS
]
+
+oci_tarball(
+ name = "python3_tarball",
+ image = ":python3_root_amd64_debian12",
+ repotags = ["python3_distroless:1"],
+) build and load into docker daemon
then run or use in a docker build (although I'm mostly interested if this runs your applications)
|
- removes shell - removes support for ctypes - brings python3 out of experimental for debian12 Signed-off-by: Appu Goundan <[email protected]>
9f73d66
to
9e62fd2
Compare
I just tried it with a container I have that uses gunicorn and it appears to work for me. Thanks! |
Sorry to rehash an older PR that's already been merged but can we update the docs somewhere around how python3:debug doesn't actually include a shell? As of now, isn't the allure of debug the fact that you get a shell to be able to debug? Or maybe I misinterpreted. |
I believe you can execute commands with the shell, what are you trying to do exactly? The path to shell is slightly different. It's /busybox/sh ? |
Ah, okay. So the debug option doesn't allow sh to be used within the dockerfile itself and instead sets the entrypoint to be |
busybox should have all those utilities on the path: https://busybox.net/downloads/BusyBox.html has the full list. |