Skip to content

Composer Docker image with Php 7.2 and XDebug extension

License

Notifications You must be signed in to change notification settings

PathMotion/composer-php-7.2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

composer-php-7.2 Build Status

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.

About

Composer Docker image with Php 7.2 and XDebug extension

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published