Skip to main content

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

Metadata

Release files for docker-travis-php 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-travis-php 0.2.1
File Size Uploaded
docker-travis-php-0.2.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docker-travis-php 0.2.1
File Interpreter ABI Platform
docker_travis_php-0.2.1-py2-none-any.whl Python 2 none any Details

Total release size: 10.6 kB

Release files / docker-travis-php-0.2.1.tar.gz

Download URL docker-travis-php-0.2.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
45ff59e09d87cca73bf0bbef5cbc0401886cfea4c421c5fb9103aeff7a964bdd
BLAKE2b-256 checksum
How to use checksums
8d26a9881e0815cc65f6d77a8dd4a82f49baa31ebfd58fadcf55983185ed82cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / docker_travis_php-0.2.1-py2-none-any.whl

Download URL docker_travis_php-0.2.1-py2-none-any.whl
Size 5.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
cc343b82795266c2e937f31e7ba860a19d458a51e671dff45f16f3d94b885deb
BLAKE2b-256 checksum
How to use checksums
9950a9e1cc51df9cb34e6ea2ca88d996c6a9f477a2c8c19f73f33ab55fecaa74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page