Docker image to run tox with multiple python versions
742
Docker image to run tox with multiple python versions. Available images are the following:
This is an image based on ubuntu-18.04 with a pre-installed version of tox.
By using the TOX_VERSION environment variable, it's possible to select the tool version.
Check below for supported python versions.
An example command to use sawkita/tox image is the following:
# pull all python versions
docker pull sawkita/tox:all
# pull python2 only image
docker pull sawkita/tox:2
# pull python3 only image
docker pull sawkita/tox:3
# run a container
docker container run \
--mount src=$PWD,target=/src,type=bind \ # mount python source code in /src
--interactive \ # use interactive mode
--tty \ # use pseudo-terminal
--rm \ # remove the container after testing
sawkita/tox:all \ # 2 or 3 can be used
/bin/bash -c "cd /src && tox" # run tox inside /src
Supported python versions are the following:
Content type
Image
Digest
Size
341.8 MB
Last updated
over 6 years ago
docker pull sawkita/tox:3