PHP with xDebug (for running PHPUnit) for DockerHub.
This repo contains at least one branch used to auto-build docker images on DockerHub.
5.6-> Builds imageintellipharm/php-xdebug:5.67.0-> Builds imageintellipharm/php-xdebug:7.07.1-> Builds imageintellipharm/php-xdebug:7.17.2-> Builds imageintellipharm/php-xdebug:7.27.3-> Builds imageintellipharm/php-xdebug:7.37.4-> Builds imageintellipharm/php-xdebug:7.48.0-> Builds imageintellipharm/php-xdebug:8.0
Build the xdebug container by switching to the correct branch, then build and tag based on the current branch
docker build -t intellipharm/php-xdebug:${BRANCH} .Run PHPUnit
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:7.4 \
./vendor/bin/phpunitRun PHPUnit with a different version of PHP
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:5.6 \
./vendor/bin/phpunitRun PHPUnit with specific test suites
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:7.4 \
./vendor/bin/phpunit \
--testsuite "Functional,Unit"Run PHPUnit with XML log
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:7.4 \
./vendor/bin/phpunit \
--log-junit storage/tests/phpunit-junit.xmlRun PHPUnit and generate Code Coverage Report
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:7.4 \
./vendor/bin/phpunit \
--coverage-html storage/tests/coverage/html \
--coverage-clover storage/tests/coverage/phpunit-clover.xmlRun PHPUnit with specific test suites and generate Code Coverage Report
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:7.4 \
./vendor/bin/phpunit \
--testsuite "Functional,Unit" \
--coverage-html storage/tests/coverage/html \
--coverage-clover storage/tests/coverage/phpunit-clover.xmlRun PHPUnit with specific test suites and generate Code Coverage Report with XML log
docker run --rm \
-v ${DIR}/api:/app \
-w /app intellipharm/php-xdebug:7.4 \
./vendor/bin/phpunit \
--testsuite "Functional,Unit" \
--coverage-html storage/tests/coverage/html \
--coverage-clover storage/tests/coverage/phpunit-clover.xml \
--log-junit storage/tests/phpunit-junit.xmlAccess the bash shell
docker run -it intellipharm/php-xdebug:7.4 bashAccess the sh shell
docker run -it intellipharm/php-xdebug:7.4 sh