Skip to content

Commit

Permalink
[Intl] Add compile binary
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL committed Mar 16, 2019
1 parent 613bc42 commit 426b92f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Symfony/Component/Intl/Resources/bin/compile
@@ -0,0 +1,12 @@
#!/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
fi;

docker exec -u $(id -u):$(id -g) symfony-intl php src/Symfony/Component/Intl/Resources/bin/update-data.php

0 comments on commit 426b92f

Please sign in to comment.