An open API service indexing awesome lists of open source software.

https://github.com/edyan/docker-phing

Docker containers that contains Phing, a build tool for PHP Applications
https://github.com/edyan/docker-phing

docker-container phing php-applications

Last synced: 5 days ago
JSON representation

Docker containers that contains Phing, a build tool for PHP Applications

Awesome Lists containing this project

README

          

## Phing docker image
[![Build Status](https://travis-ci.com/edyan/docker-phing.svg?branch=master)](https://travis-ci.com/edyan/docker-phing)
[![Docker Pulls](https://img.shields.io/docker/pulls/edyan/phing.svg)](https://hub.docker.com/r/edyan/phing/)

## Facts
* Docker Hub: https://hub.docker.com/r/edyan/phing
* Docker containers that contains [phing](https://www.phing.info/), a build tool for PHP Applications.
* It's made for development purposes. To use it in an integrated environment, try [Stakkr](https://github.com/stakkr-org/stakkr)
* That image is built with alpine (❤ ... ~30Mb instead of ~100Mb with debian-slim).
* If you need phing 3 (still in alpha1), try docker image "phing/phing:3.0".

## Run your phing command
### From outside
```bash
docker run -ti --env PHING_UID=$(id -u) --env PHING_GID=$(id -g) --rm --volume $(pwd):$(pwd) edyan/phing phing -f $(pwd)/build.xml
```

### By entering the container
```bash
docker run -ti --env PHING_UID=$(id -u) --env PHING_GID=$(id -g) --rm --volume $(pwd):$(pwd) edyan/phing /bin/sh
# Once inside the container
# Enter the right directory
cd /home/xyz/myapp
phing
```

## Override user's ID
To make sure the report and all files generated by Phing belongs to your user you can override
the UID and GID by using env variables `PHING_UID` and `PHING_GID` as displayed above.