[Intl] Simplify the compile binary
The docker image comes with the build-essential packages now.
This commit is contained in:
parent
2d00024153
commit
b3184c26ad
|
@ -1,12 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $1 == force || ! $(docker ps -a | grep symfony-intl) ]]; then
|
if [[ $1 == force ]]; then
|
||||||
docker rm -f symfony-intl
|
docker pull jakzal/php-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
|
|
||||||
fi;
|
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
|
||||||
|
|
Reference in New Issue