-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
provide Docker packaging #1035
Comments
Who would be the intended audience for this? |
People not wanting to install python/tox on their machine, but would prefer to invoke it from tox; think of it as instead of |
That sounds indeed handy. |
Did anything ever come of this? |
Sounds like something that would be accepted to the official docker library as well https://docs.docker.com/docker-hub/official_images/#creating-an-official-image |
Would be great if someone could make a contribution for this. |
Hi guys, I'm happy to share an initial version of my Docker image packaging for tox 😊 This multi-arch Docker image neatly packages tox v4 along with all currently active Python versions. The image is secure, compact, and easy to use. At this moment, the image only supports the following platforms:
Please give it a try and share your feedback 🙏 I'm especially interested in discussing current image limitations and would love to hear from maintainers and users about the following:
As for the official Docker image, I could help with that too. I've been maintaining official images for Zookeeper and Storm since 2016, so I have some relevant experience |
toy v3 is no longer officially supported by the tox core team. So imho there is need for a docker image. |
I moved from compiling Python using pyenv to installing from deadsnakes PPA 🎉 Not only it drastically reduced build times, but also resulted in a smaller image ( Everybody who is interested, please check the |
I think a tox docker image should provide similar tags to the official python image tags. At least I'd rather opt for an image that can build most source distributions out-of-the-box, provided it features git, mercurial and a bunch of preinstalled development libraries (namely CPython headers) just as the As for the vendored python interpreters, I think settling for the active python versions is a sensible default but I would expect
|
Thanks for your feedback @n1ngu 👍
I'm not sure about having several image variants right now. Because building and maintaining such variants would require extra effort. But I'm still not sure how popular the image would be. I don't think that absence of the
Good point.
Makes sense. As usability benchmark I took flask and mypy and updated the image so that both packages can be tested using it out-of-the-box. See flask demo.
PyPy is not included at the moment. But maybe I'll add in the future.
That's doable by creating a derivative image. I added a short example to the README. |
Beside providing tox as a Python package it could be helpful to also provide an "official" Docker image that's set up with correct Pythons and tox installed. This came out of #943. Any version of this needs to:
It's to be determined if this should leave as part of this repository; or should it instead be a separate project.
The text was updated successfully, but these errors were encountered: