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
- Host: GitHub
- URL: https://github.com/edyan/docker-phing
- Owner: edyan
- License: apache-2.0
- Created: 2017-06-13T08:56:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T13:26:27.000Z (about 7 years ago)
- Last Synced: 2025-02-21T14:49:44.903Z (over 1 year ago)
- Topics: docker-container, phing, php-applications
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/edyan/phing/
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Phing docker image
[](https://travis-ci.com/edyan/docker-phing)
[](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.