Document running tox within a Docker container#2923
Document running tox within a Docker container#2923gaborbernat merged 2 commits intotox-dev:mainfrom
Conversation
|
|
||
| .. code-block:: Dockerfile | ||
|
|
||
| FROM 31z4/tox |
There was a problem hiding this comment.
Could we create a tox-dev or tox org instead to host under? You can be one of it's owner's 😊
There was a problem hiding this comment.
Yes I think it makes sense. Although, if we aim to make the image "official" maybe it's better to work towards this right now. This way we can save some maintenance efforts. Because we don't have to deprecate tox-dev/tox in favour of official tox. And also users don't have to migrate from the deprecated image to the official one.
Some benefits of an official image that I'd like to highlight:
- Automated multi-arch builds.
- Automated periodic re-builds when a base image is updated.
- Better structured docs and build artefacts (e.g.. https://github.com/docker-library/repo-info/tree/master/repos/zookeeper).
There was a problem hiding this comment.
Yeah let's make it so. What do you need from me to get there?
There was a problem hiding this comment.
I guess nothing at this point. I'll make some usability changes to the image to conform with https://github.com/docker-library/official-images#consistency. And then will work on PRs to https://github.com/docker-library/official-images and https://github.com/docker-library/docs.
|
|
||
| .. code-block:: shell | ||
|
|
||
| docker run -v `pwd`:/home/tox/tests -it --rm 31z4/tox run-parallel -e black,py311 |
There was a problem hiding this comment.
Would prefer to mount the project under the /w folder, personal preference 😅
There was a problem hiding this comment.
That's possible too -w /w):
docker run -v `pwd`:/w -w /w -it --rm 31z4/tox run-parallel -e black,py311
I can change image workdir from /home/tox/tests to something more concise, like /tests maybe. I agree that /home/tox/tests might be too long to type 😅
There was a problem hiding this comment.
I'd make/w the default, concise better 😅
There was a problem hiding this comment.
I've been pretty busy recently. Hopefully will get a chance to work on the official image later this month. In the meantime https://github.com/31z4/tox-docker should be good enough for production already.
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [tox](https://togithub.com/tox-dev/tox) ([changelog](https://tox.wiki/en/latest/changelog.html)) | dev | minor | `4.4.8` -> `4.5.1` | `4.6.0` (+1) | --- ### Release Notes <details> <summary>tox-dev/tox</summary> ### [`v4.5.1`](https://togithub.com/tox-dev/tox/releases/tag/4.5.1): Test Trusted Publisher [Compare Source](https://togithub.com/tox-dev/tox/compare/4.5.0...4.5.1) ### [`v4.5.0`](https://togithub.com/tox-dev/tox/releases/tag/4.5.0) [Compare Source](https://togithub.com/tox-dev/tox/compare/4.4.12...4.5.0) #### What's Changed - Bump deps and tools by [@​gaborbernat](https://togithub.com/gaborbernat) in [https://github.com/tox-dev/tox/pull/2987](https://togithub.com/tox-dev/tox/pull/2987) - git: Ignore the .lock file for demo_pkg_inline by [@​hroncok](https://togithub.com/hroncok) in [https://github.com/tox-dev/tox/pull/2988](https://togithub.com/tox-dev/tox/pull/2988) - Add FAQ entry on how to test against EOL Python versions by [@​jugmac00](https://togithub.com/jugmac00) in [https://github.com/tox-dev/tox/pull/2991](https://togithub.com/tox-dev/tox/pull/2991) - Feature: suppress step timings for verbosity=1 [#​2891](https://togithub.com/tox-dev/tox/issues/2891) by [@​nedbat](https://togithub.com/nedbat) in [https://github.com/tox-dev/tox/pull/2992](https://togithub.com/tox-dev/tox/pull/2992) **Full Changelog**: tox-dev/tox@4.4.12...4.5.0 ### [`v4.4.12`](https://togithub.com/tox-dev/tox/releases/tag/4.4.12) [Compare Source](https://togithub.com/tox-dev/tox/compare/4.4.11...4.4.12) #### What's Changed - Avoid race conditions in tests using the demo_pkg_inline fixture by [@​hroncok](https://togithub.com/hroncok) in [https://github.com/tox-dev/tox/pull/2986](https://togithub.com/tox-dev/tox/pull/2986) - Bump deps and tools by [@​gaborbernat](https://togithub.com/gaborbernat) in [https://github.com/tox-dev/tox/pull/2981](https://togithub.com/tox-dev/tox/pull/2981) **Full Changelog**: tox-dev/tox@4.4.11...4.4.12 ### [`v4.4.11`](https://togithub.com/tox-dev/tox/releases/tag/4.4.11) [Compare Source](https://togithub.com/tox-dev/tox/compare/4.4.10...4.4.11) #### What's Changed - Allow plugins to set `tox_root` by [@​kdestin](https://togithub.com/kdestin) in [https://github.com/tox-dev/tox/pull/2978](https://togithub.com/tox-dev/tox/pull/2978) #### New Contributors - [@​kdestin](https://togithub.com/kdestin) made their first contribution in [https://github.com/tox-dev/tox/pull/2978](https://togithub.com/tox-dev/tox/pull/2978) **Full Changelog**: tox-dev/tox@4.4.10...4.4.11 ### [`v4.4.10`](https://togithub.com/tox-dev/tox/releases/tag/4.4.10) [Compare Source](https://togithub.com/tox-dev/tox/compare/4.4.9...4.4.10) #### What's Changed - Bump deps and tools by [@​gaborbernat](https://togithub.com/gaborbernat) in [https://github.com/tox-dev/tox/pull/2976](https://togithub.com/tox-dev/tox/pull/2976) - Fix `tox_root` propagation to `work_dir` by [@​Tbruno25](https://togithub.com/Tbruno25) in [https://github.com/tox-dev/tox/pull/2962](https://togithub.com/tox-dev/tox/pull/2962) #### New Contributors - [@​Tbruno25](https://togithub.com/Tbruno25) made their first contribution in [https://github.com/tox-dev/tox/pull/2962](https://togithub.com/tox-dev/tox/pull/2962) **Full Changelog**: tox-dev/tox@4.4.9...4.4.10 ### [`v4.4.9`](https://togithub.com/tox-dev/tox/releases/tag/4.4.9) [Compare Source](https://togithub.com/tox-dev/tox/compare/4.4.8...4.4.9) #### What's Changed - Added python 3.11 by [@​ElBe-Plaq](https://togithub.com/ElBe-Plaq) in [https://github.com/tox-dev/tox/pull/2964](https://togithub.com/tox-dev/tox/pull/2964) - Document running tox within a Docker container by [@​31z4](https://togithub.com/31z4) in [https://github.com/tox-dev/tox/pull/2923](https://togithub.com/tox-dev/tox/pull/2923) - Correct Docker image working dir by [@​31z4](https://togithub.com/31z4) in [https://github.com/tox-dev/tox/pull/2965](https://togithub.com/tox-dev/tox/pull/2965) - Avoid UnicodeDecodeError from command output by [@​masenf](https://togithub.com/masenf) in [https://github.com/tox-dev/tox/pull/2970](https://togithub.com/tox-dev/tox/pull/2970) - Bump pypa/gh-action-pypi-publish from 1.8.3 to 1.8.5 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/tox-dev/tox/pull/2971](https://togithub.com/tox-dev/tox/pull/2971) #### New Contributors - [@​ElBe-Plaq](https://togithub.com/ElBe-Plaq) made their first contribution in [https://github.com/tox-dev/tox/pull/2964](https://togithub.com/tox-dev/tox/pull/2964) - [@​31z4](https://togithub.com/31z4) made their first contribution in [https://github.com/tox-dev/tox/pull/2923](https://togithub.com/tox-dev/tox/pull/2923) **Full Changelog**: tox-dev/tox@4.4.8...4.4.9 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMC4yIiwidXBkYXRlZEluVmVyIjoiMzUuMTAuMiJ9--> Co-authored-by: descope[bot] <descope[bot]@users.noreply.github.com>
Created this PR to continue work on #1035. The idea is to mention
31z4/toxDocker image in the docs to gather more feedback from users. What do you guys think? Is it OK to refer to the current version of the image? Or moving the image under thetox-devorganisation or making it official would be a blocker?Thanks for contribution
Please, make sure you address all the checklists (for details on how see
development documentation)!
tox -e fix)docs/changelogfolder