skip to navigation
skip to content

docker-travis-php 0.2.0

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

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
 
File Type Py Version Uploaded on Size
docker-travis-php-0.2.0.tar.gz (md5) Source 2016-02-05 4KB
docker_travis_php-0.2.0-py2-none-any.whl (md5) Python Wheel 2.7 2016-02-05 7KB
  • Author: Jose Diaz-Gonzalez
  • Home Page: http://github.com/josegonzalez/docker-travis-php
  • License:
    The MIT License (MIT)
    
    Copyright (c) 2015 Jose Diaz-Gonzalez
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
  • Categories
  • Package Index Owner: savant
  • DOAP record: docker-travis-php-0.2.0.xml