PHP Unit Docker Image in various PHP Versions
4.5K
PHP Unit Images for various PHP Versions (https://phpunit.de/) Also comes with Infection and xdebug packaged (https://infection.github.io/)
docker run -v $PWD:/workdir --workdir /workdir --rm -it bestit/qa-phpunit:11.5-php8.4
docker run -v $PWD:/workdir --workdir /workdir --rm --entrypoint="" -it bestit/qa-phpunit:11.5-php8.4 /tools/infection
The build is using a docker multi stage build. To release a new version the following steps are required:
For PHP Unit, we are supporting multiple php versions which are organized in separate branches in the repository.
so branches look for example like this:
main-php8.1main-php8.2main-php8.3main-php8.4From those branches, new tags must be created in the following format:
<PHPUnit Major>.<PHPUnit Minor>-php<PHP Major>.<PHP Minor>
To release a new PHP Unit version for all PHP Versions, the following steps have to be done for each branch:
main-<phpversion>tool_version in Dockerfile (amd64) and Dockerfile.arm64v8 (arm64v8)multi-arch-manifest.yaml for both platforms.CHANGELOG.md accordingly.11.5-php8.4, dockerhub will start the build automatically.To test the Dockerfiles locally you can execute this command to build the image on amd64 and arm64 architectures:
docker buildx build --force-rm --no-cache -t qa-phpmd --platform linux/arm64,linux/amd64 . && docker run -it qa-phpunit
Content type
Image
Digest
sha256:a313e93ab…
Size
44.7 MB
Last updated
over 1 year ago
docker pull bestit/qa-phpunit:11.5-php8.4-amd64