File tree 1 file changed +10
-8
lines changed
src/Symfony/Component/Intl/Resources/bin
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
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
10
5
fi ;
11
6
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
You can’t perform that action at this time.
0 commit comments