https://github.com/pathmotion/composer-php-7.2
Composer Docker image with Php 7.2 and XDebug extension
https://github.com/pathmotion/composer-php-7.2
docker php72 xdebug
Last synced: 11 months ago
JSON representation
Composer Docker image with Php 7.2 and XDebug extension
- Host: GitHub
- URL: https://github.com/pathmotion/composer-php-7.2
- Owner: PathMotion
- License: mit
- Created: 2019-01-12T16:17:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T17:00:04.000Z (about 7 years ago)
- Last Synced: 2025-01-16T20:18:42.168Z (about 1 year ago)
- Topics: docker, php72, xdebug
- Language: Dockerfile
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# composer-php-7.2 [](https://travis-ci.org/PathMotion/composer-php-7.2)
Composer image with Php 7.2 and XDebug extension enabled for running CI with code coverage capabilities.
## Description
This image contains:
- php 7.2.14
- composer 1.8.0
- XDebug 2.6.0
## Usage
### Build the image
```
docker build -t image_name .
```
### Run container
From any Php 7.2 project directory you want to install, run `composer install` from the container:
```
docker run -it --rm -v $PWD:/app image_name install
```
If you need more commands, run `bash` from the container:
```
docker run -it --rm --entrypoint /bin/bash -v $PWD:/app image_name
```
Then, run any commands like `phpunit` for instance:
```
root@a1b2c3:/app# ./vendor/bin/phpunit
```
### Warning
This image is meant to be used for development or CI environments. This is not Production grade.