Sign inSign up

bestit/qa-phpunit

By bestit

Updated over 1 year ago

PHP Unit Docker Image in various PHP Versions

Image
Integration & delivery
Developer tools
0

4.5K

bestit/qa-phpunit repository overview

bestit/qa-phpunit

PHP Unit Images for various PHP Versions (https://phpunit.de/) Also comes with Infection and xdebug packaged (https://infection.github.io/)

Usage

PHPUnit
docker run -v $PWD:/workdir --workdir /workdir  --rm -it bestit/qa-phpunit:11.5-php8.4
Infection
docker run -v $PWD:/workdir --workdir /workdir  --rm --entrypoint="" -it bestit/qa-phpunit:11.5-php8.4 /tools/infection

Releasing new versions

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.1
  • main-php8.2
  • main-php8.3
  • main-php8.4

From 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:

  1. Checkout the php branch main-<phpversion>
  2. Update tool_version in Dockerfile (amd64) and Dockerfile.arm64v8 (arm64v8)
  3. Update versions in multi-arch-manifest.yaml for both platforms.
  4. Update CHANGELOG.md accordingly.
  5. Create and push a new tag, e.g. 11.5-php8.4, dockerhub will start the build automatically.

Local Testing

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

Tag summary

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