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.

Source Distribution

docker-travis-php-0.2.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

docker_travis_php-0.2.1-py2-none-any.whl (5.7 kB view details)

Uploaded Python 2

File details

Details for the file docker-travis-php-0.2.1.tar.gz.

File metadata

  • Download URL: docker-travis-php-0.2.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for docker-travis-php-0.2.1.tar.gz
Algorithm Hash digest
SHA256 45ff59e09d87cca73bf0bbef5cbc0401886cfea4c421c5fb9103aeff7a964bdd
MD5 0521039a2eff874d99536fe4393d91d3
BLAKE2b-256 8d26a9881e0815cc65f6d77a8dd4a82f49baa31ebfd58fadcf55983185ed82cc

See more details on using hashes here.

File details

Details for the file docker_travis_php-0.2.1-py2-none-any.whl.

File metadata

File hashes

Hashes for docker_travis_php-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 cc343b82795266c2e937f31e7ba860a19d458a51e671dff45f16f3d94b885deb
MD5 b26c91809339f629cfcd6a3e8e229e07
BLAKE2b-256 9950a9e1cc51df9cb34e6ea2ca88d996c6a9f477a2c8c19f73f33ab55fecaa74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page