Pythonista - the Docker image
Pythonista is a Docker image for real Python developers. That means
you can find here most popular Python interpreters and test your
application in all of them. The idea for the image was born when I needed
to test some code in Python 2.6 environment and my workstation couldn't
handle it, since Debian Jessie doesn't have Python 2.6 in its repo.
- OS - Debian 9 Stretch (testing) or CentOS 7
- CPython - 2.7.12 / 3.3.6 / 3.4.5 / 3.5.2
- PyPy - PyPy 5.4.1 (based on 2.7.10) / PyPy3 2.4.0 (based on 3.2.5)
How To Use?
Pythonista image is available on Docker Hub, so you can easily
it by means
$ [sudo] docker pull ikalnitsky/pythonista
If you want to enter a bash session, just do it how you did it for
$ [sudo] docker run -t -i ikalnitsky/pythonista bash
bash session within container.
It's very convenient to run unit tests inside Pythonista container because
you can run it using different Python interpreters. For example, with tox
the command might look like:
$ [sudo] docker run -v /path/to/src/:/src -w /src ikalnitsky/pythonista tox
Build the image locally
You are also welcome to build and tweak the testing image locally using
To build Pythonista Docker image (by default based on Debian):
$ [sudo] docker build -t pythonista-deb .
To build Pythonista Docker image based on CentOS use
$ [sudo] docker build -f Dockerfile.centos -t pythonista-yum .
It's important for me to get user's feedback, so please don't hesitate
to suggest improvements or report bugs via GitHub Issue.