Skip to main content

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.

Installation

Using PIP via PyPI:

pip install docker-travis-php

Using PIP via Github:

pip install git+git://github.com/josegonzalez/docker-travis-php.git#egg=docker-travis-php

Usage

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

docker-travis-php

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
docker-travis-php

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
docker-travis-php

Project details


Download files

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

Files for docker-travis-php, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size docker_travis_php-0.2.1-py2-none-any.whl (5.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size docker-travis-php-0.2.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page