Docker images for testing the Symfony Intl Component
10K+
Docker images for running tests of the Symfony Intl Component against various ICU/Intl versions. These images are not meant to be used on production systems.
For older PHP or ICU versions check out the legacy branches:
Images are tagged with a PHP version and an ICU release separated with a dash.
For example, the tag for PHP 8.0 and ICU 68.2 is 8.0-68.2.
docker run -it --rm \
-v `pwd`:/symfony -w /symfony \
jakzal/php-intl:8.0-68.2 \
./phpunit /symfony/src/Symfony/Component/Intl/Tests/
To list all available tags run the following command (requires jq to be installed):
curl -Ls https://registry.hub.docker.com/v1/repositories/jakzal/php-intl/tags | jq .[].name --raw-output
The following command will re-generate all the Dockerfiles that then can
be used to build PHP images with intl support:
make generate
Build all images (will take a lot of time):
make build-all
Build the latest PHP version with the latest ICU release:
make build
Build the latest PHP version with a chosen ICU release:
make build ICU_VERSION=68.2
Build a chosen PHP version with a chosen ICU release:
make build ICU_VERSION=68.2 PHP_VERSION=8.0
It's best to run these tests on a system that natively supports Docker. If you're not a Linux desktop user, you can create a digitalocean droplet with little effort (or use other cloud provider):
docker-machine create --driver digitalocean --digitalocean-access-token $DIGITAL_OCEAN_ACCESS_TOKEN \
--digitalocean-image "ubuntu-19-04-x64" \
--digitalocean-size "4gb" \
--digitalocean-region "lon1" \
symfony-intl
eval "$(docker-machine env symfony-intl)"
docker run --rm -it jakzal/php-intl:8.0-68.2 bash
Clone the Symfony repository and switch to the branch you want to test:
git clone https://github.com/jakzal/symfony.git \
&& cd symfony \
&& git checkout icu-68.2 \
&& composer install
Run all intl-data tests:
./phpunit --group intl-data
Destroy the droplet when you're done:
docker-machine rm symfony-intl
Content type
Image
Digest
sha256:1141b0464…
Size
211.9 MB
Last updated
14 days ago
Requires Docker Desktop 4.37.1 or later.