Skip to content

Alternative Docker base image for Python testing with tox.

License

Notifications You must be signed in to change notification settings

painless-software/docker-tox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tox

dockeri.co

MIT License GitHub issues GitHub PRs

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.

Python Test Automation

Derives from themattrix/tox, which you may use if you don't need Git, database client libraries, etc.

Supported Tags

  • latest size/layers (base image with tox and Git, prepared for Postgres and MariaDB)
  • kubernetes size/layers (with additional software for running tests/linting against Kubernetes manifests)
  • multi size/layers (provides additional software for running tests against multiple technologies, such as PHP Composer)

Example

Run tests with tox from your repository root:

# docker-compose.yml

version: '2'

services:
  app:
    image: painless/tox
    volumes:
      - .:/app

Pragmatic Tips

Speed up your builds

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!

Releases

No releases published

Packages

No packages published