Skip to content

Commit

Permalink
[Intl] Simplify the compile binary
Browse files Browse the repository at this point in the history
                         The docker image comes with the build-essential packages now.
  • Loading branch information
jakzal committed Mar 29, 2019
1 parent 2d00024 commit b3184c2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Symfony/Component/Intl/Resources/bin/compile
@@ -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

0 comments on commit b3184c2

Please sign in to comment.