Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3184c2

Browse files
committed
[Intl] Simplify the compile binary
The docker image comes with the build-essential packages now.
1 parent 2d00024 commit b3184c2

File tree

1 file changed

+10
-8
lines changed
  • src/Symfony/Component/Intl/Resources/bin

1 file changed

+10
-8
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/usr/bin/env bash
22

3-
if [[ $1 == force || ! $(docker ps -a | grep symfony-intl) ]]; then
4-
docker rm -f symfony-intl
5-
docker create --name symfony-intl -it -v /tmp:/tmp -v $(pwd):/app -w /app jakzal/php-intl:7.2-63.1 bash
6-
docker start symfony-intl
7-
docker exec symfony-intl bash -xc "apt-get update && apt-get -y install build-essential"
8-
else
9-
docker start symfony-intl
3+
if [[ $1 == force ]]; then
4+
docker pull jakzal/php-intl
105
fi;
116

12-
docker exec -u $(id -u):$(id -g) symfony-intl php src/Symfony/Component/Intl/Resources/bin/update-data.php
7+
docker run \
8+
-it --rm --name symfony-intl \
9+
-u $(id -u):$(id -g) \
10+
-v /tmp/symfony/icu:/tmp \
11+
-v $(pwd):/symfony \
12+
-w /symfony \
13+
jakzal/php-intl:latest \
14+
php src/Symfony/Component/Intl/Resources/bin/update-data.php

0 commit comments

Comments
 (0)