Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Shits out a simple dockerfile for php projects based upon a .travis.yml

Project description

Shits out a simple dockerfile for php projects based upon a .travis.yml

Literally don’t use this and assume it’ll work. It probably won’t. Hence the description.

Literally the worst. I can’t even.


Using PIP via PyPI:

pip install docker-travis-php

Using PIP via Github:

pip install git+git://


In a directory with a .travis.yml, run the following:


You will now have a Dockerfile in that directory that can be run via the following command:

# builds the ``before_script`` and ``script`` sections
# useful for "local" travis runs
docker build .

The default debian packages that are installed (before php extensions) are as follows:

  • git-core
  • libcurl4-openssl-dev
  • libicu-dev
  • php-pear
  • php5-cli

You can add more by using the following environment variable:

export PACKAGES=wget

By default, the following extensions are built:

  • curl
  • intl
  • mbstring
  • mysql
  • redis
  • xdebug

You can configure this using the following environment variable:

export EXTENSIONS=curl,intl,mbstring

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
docker_travis_php-0.2.0-py2-none-any.whl (7.2 kB) Copy SHA256 hash SHA256 Wheel 2.7 Feb 5, 2016
docker-travis-php-0.2.0.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None Feb 5, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page