From 426b92f4a8d21107015ceec15a087fad72af027a Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Sat, 16 Mar 2019 10:05:46 +0100 Subject: [PATCH] [Intl] Add compile binary --- src/Symfony/Component/Intl/Resources/bin/compile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 src/Symfony/Component/Intl/Resources/bin/compile diff --git a/src/Symfony/Component/Intl/Resources/bin/compile b/src/Symfony/Component/Intl/Resources/bin/compile new file mode 100755 index 0000000000..8e73d641d5 --- /dev/null +++ b/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