Update pecl extensions in update.sh

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2018-11-21 22:34:02 +01:00
parent cbe0ad1ad2
commit a1ed54243d
13 changed files with 52 additions and 16 deletions

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately # pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.17; \ pecl install APCu-5.1.17; \
pecl install memcached-3.1.3; \ pecl install memcached-3.1.3; \
pecl install redis-4.2.0; \ pecl install redis-4.3.0; \
pecl install imagick-3.4.3; \ pecl install imagick-3.4.3; \
\ \
docker-php-ext-enable \ docker-php-ext-enable \

View File

@ -25,11 +25,47 @@ declare -A extras=(
[fpm-alpine]='' [fpm-alpine]=''
) )
apcu_version="$(
git ls-remote --tags https://github.com/krakjoe/apcu.git \
| cut -d/ -f3 \
| grep -vE -- '-rc|-b' \
| sed -E 's/^v//' \
| sort -V \
| tail -1
)"
memcached_version="$(
git ls-remote --tags https://github.com/php-memcached-dev/php-memcached.git \
| cut -d/ -f3 \
| grep -vE -- '-rc|-b' \
| sed -E 's/^[rv]//' \
| sort -V \
| tail -1
)"
redis_version="$(
git ls-remote --tags https://github.com/phpredis/phpredis.git \
| cut -d/ -f3 \
| grep -viE '[a-z]' \
| tr -d '^{}' \
| sort -V \
| tail -1
)"
imagick_version="$(
git ls-remote --tags https://github.com/mkoppanen/imagick.git \
| cut -d/ -f3 \
| grep -viE '[a-z]' \
| tr -d '^{}' \
| sort -V \
| tail -1
)"
declare -A pecl_versions=( declare -A pecl_versions=(
[APCu]='5.1.17' [APCu]="$apcu_version"
[memcached]='3.1.3' [memcached]="$memcached_version"
[redis]='4.2.0' [redis]="$redis_version"
[imagick]='3.4.3' [imagick]="$imagick_version"
) )
variants=( variants=(