[Intl] Simplify the compile binary

The docker image comes with the build-essential packages now.
This commit is contained in:
Jakub Zalas 2019-03-29 22:39:22 +00:00
parent 2d00024153
commit b3184c26ad
No known key found for this signature in database
GPG Key ID: 15614199651BDE8D
1 changed files with 10 additions and 8 deletions

View File

@ -1,12 +1,14 @@
#!/usr/bin/env bash
if [[ $1 == force || ! $(docker ps -a | grep symfony-intl) ]]; then
docker rm -f symfony-intl
docker create --name symfony-intl -it -v /tmp:/tmp -v $(pwd):/app -w /app jakzal/php-intl:7.2-63.1 bash
docker start symfony-intl
docker exec symfony-intl bash -xc "apt-get update && apt-get -y install build-essential"
else
docker start symfony-intl
if [[ $1 == force ]]; then
docker pull jakzal/php-intl
fi;
docker exec -u $(id -u):$(id -g) symfony-intl php src/Symfony/Component/Intl/Resources/bin/update-data.php
docker run \
-it --rm --name symfony-intl \
-u $(id -u):$(id -g) \
-v /tmp/symfony/icu:/tmp \
-v $(pwd):/symfony \
-w /symfony \
jakzal/php-intl:latest \
php src/Symfony/Component/Intl/Resources/bin/update-data.php