3 ms·
Alpine is not "the Docker distro". It predates Docker by quite some time and was used in lots of lightweight systems. Python wheels compiled using the manylinu
by jpgvm 7y ago
Alpine is not "the Docker distro". It predates Docker by quite some time and was used in lots of lightweight systems.
Python wheels compiled using the manylinux infrastructure actually do work on Alpine + musl.
That said I wouldn't recommend running Python on musl as I have seen incredibly weird behaviour including corruption of Python's low integer cache resulting in some truely awful consequences. i.e amounts of currency suddenly being 10x what they should be.
- Chris2048 7y agoPresumably those manylinux wheels do not have c bindings, when they do they are glibc based.
- Conan_Kudo 7y agomanylinux wheels are exclusively binary wheels with compiled parts, so they're all glibc-based (as the manylinux ABI is glibc).
- Chris2048 7y agoThen, I can't see how they work on Alpine w/ musl. @jpgvm Do you mean they work if you manually install them? b/c pip won't install glibc wheels on alpine.
- greenshackle2 7y agoThere's no guarantee that they do and I certainly don't expect any random manylinux wheel off pypi to work on alpine. I maintain one that definitely doesn't. We build a musl wheel too but there's no musl platform tag so we don't have a good way to distribute it on pypi.
- akerl_ 7y agoDidn’t Docker hire the person who designed / maintained Alpine? Edit: Yes: https://thenewstack.io/alpine-linux-heart-docker/ https://thenewstack.io/alpine-linux-heart-docker/
- fulafel 7y agoWow, that's unfortunate. I've only seen mysterious crashes.
- Chico75 7y agoIt's also known to be slower to run python code: https://superuser.com/questions/1219609/why-is-the-alpine-docker-image-over-50-slower-than-the-ubuntu-image https://superuser.com/questions/1219609/why-is-the-alpine-do... I was able to reproduce and confirm these findings