Skip to content

Commit 88a8be3

Browse files
committed
Do "pecl install" in series so it fails properly
1 parent 5c88b40 commit 88a8be3

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Dockerfile-alpine.template

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ RUN set -ex; \
2727
zip \
2828
; \
2929
\
30-
pecl install \
31-
APCu-5.1.11 \
32-
geoip-1.1.1 \
33-
redis-3.1.6 \
34-
; \
30+
# pecl will claim success even if one install fails, so we need to perform each install separately
31+
pecl install APCu-5.1.11; \
32+
pecl install geoip-1.1.1; \
33+
pecl install redis-3.1.6; \
3534
\
3635
docker-php-ext-enable \
3736
apcu \

fpm-alpine/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ RUN set -ex; \
2727
zip \
2828
; \
2929
\
30-
pecl install \
31-
APCu-5.1.11 \
32-
geoip-1.1.1 \
33-
redis-3.1.6 \
34-
; \
30+
# pecl will claim success even if one install fails, so we need to perform each install separately
31+
pecl install APCu-5.1.11; \
32+
pecl install geoip-1.1.1; \
33+
pecl install redis-3.1.6; \
3534
\
3635
docker-php-ext-enable \
3736
apcu \

0 commit comments

Comments
 (0)