Skip to content

Commit 6a1be4c

Browse files
committed
minor symfony#32401 [Intl] Init compile tmp volume (ro0NL)
This PR was merged into the 3.4 branch. Discussion ---------- [Intl] Init compile tmp volume | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Fixes ``` Symfony\Component\Filesystem\Exception\IOException: Failed to create "/tmp/icu-data": mkdir(): Permission denied. ``` if the initial volume does not exists docker creates it as root, but the container runs for the current user. Commits ------- 5e26d96 [Intl] Init compile tmp volume
2 parents d92c9b8 + 5e26d96 commit 6a1be4c

File tree

1 file changed

+2
-3
lines changed
  • src/Symfony/Component/Intl/Resources/bin

1 file changed

+2
-3
lines changed

src/Symfony/Component/Intl/Resources/bin/compile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env bash
22

3-
if [[ $1 == force ]]; then
4-
docker pull jakzal/php-intl
5-
fi;
3+
[[ $1 == force ]] && docker pull jakzal/php-intl
4+
[[ ! -d /tmp/symfony/icu ]] && mkdir -p /tmp/symfony/icu
65

76
docker run \
87
-it --rm --name symfony-intl \

0 commit comments

Comments
 (0)