Alternative Docker base image for Python testing with tox. If you need Git or database client libraries for running your tests.
Ships with the prerequisites for installing psycopg2
, mysql-python
and mysqlclient
, and optionally some other software.
Derives from themattrix/tox
, which you may use if you don't need Git, database client libraries, etc.
- Usage (README of the parent image)
- Contribute (GitHub repository)
- (base image with tox and Git, prepared for Postgres and MariaDB)
- (with additional software for running tests/linting against Kubernetes manifests)
- (provides additional software for running tests against multiple technologies, such as PHP Composer)
Run tests with tox from your repository root:
# docker-compose.yml
version: '2'
services:
app:
image: painless/tox
volumes:
- .:/app
Build your own image running tox --notest
with your tox.ini
file, push it to your (private) registry, and use that image for your builds.
When your builds run, any missing -- and only those! -- dependencies are installed. Your builds will be lightning-fast and still reliable!