diff options
author | J0WI <J0WI@users.noreply.github.com> | 2019-03-14 01:01:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 01:01:02 +0100 |
commit | ae8992ab626fd7f2edf730125fcd539b7db59b88 (patch) | |
tree | ac8759140e112278621dd71774230d6f610b49b6 | |
parent | cbe0ad1ad2e96912bd220426757d0159ec727b26 (diff) | |
parent | a1ed54243dbcf7e9b7ebdb77fc325a9d8ebdb3a5 (diff) |
Merge pull request #543 from J0WI/pecl-update
Update pecl extensions in update.sh
-rw-r--r-- | 13.0/apache/Dockerfile | 2 | ||||
-rw-r--r-- | 13.0/fpm-alpine/Dockerfile | 2 | ||||
-rw-r--r-- | 13.0/fpm/Dockerfile | 2 | ||||
-rw-r--r-- | 14.0/apache/Dockerfile | 2 | ||||
-rw-r--r-- | 14.0/fpm-alpine/Dockerfile | 2 | ||||
-rw-r--r-- | 14.0/fpm/Dockerfile | 2 | ||||
-rw-r--r-- | 15.0/apache/Dockerfile | 2 | ||||
-rw-r--r-- | 15.0/fpm-alpine/Dockerfile | 2 | ||||
-rw-r--r-- | 15.0/fpm/Dockerfile | 2 | ||||
-rw-r--r-- | 16.0-alpha/apache/Dockerfile | 2 | ||||
-rw-r--r-- | 16.0-alpha/fpm-alpine/Dockerfile | 2 | ||||
-rw-r--r-- | 16.0-alpha/fpm/Dockerfile | 2 | ||||
-rwxr-xr-x | update.sh | 44 |
13 files changed, 52 insertions, 16 deletions
diff --git a/13.0/apache/Dockerfile b/13.0/apache/Dockerfile index ef544a5e..ce8338cb 100644 --- a/13.0/apache/Dockerfile +++ b/13.0/apache/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/13.0/fpm-alpine/Dockerfile b/13.0/fpm-alpine/Dockerfile index 191c0b71..cebe4a51 100644 --- a/13.0/fpm-alpine/Dockerfile +++ b/13.0/fpm-alpine/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/13.0/fpm/Dockerfile b/13.0/fpm/Dockerfile index fa2d98e6..af598791 100644 --- a/13.0/fpm/Dockerfile +++ b/13.0/fpm/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/14.0/apache/Dockerfile b/14.0/apache/Dockerfile index 38ce18e8..7d9d12d7 100644 --- a/14.0/apache/Dockerfile +++ b/14.0/apache/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/14.0/fpm-alpine/Dockerfile b/14.0/fpm-alpine/Dockerfile index d1befe22..8e83be74 100644 --- a/14.0/fpm-alpine/Dockerfile +++ b/14.0/fpm-alpine/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/14.0/fpm/Dockerfile b/14.0/fpm/Dockerfile index b95255b5..0b61d907 100644 --- a/14.0/fpm/Dockerfile +++ b/14.0/fpm/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/15.0/apache/Dockerfile b/15.0/apache/Dockerfile index 86baeb82..4c2c5dec 100644 --- a/15.0/apache/Dockerfile +++ b/15.0/apache/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/15.0/fpm-alpine/Dockerfile b/15.0/fpm-alpine/Dockerfile index 9ce02ba1..dc2a861b 100644 --- a/15.0/fpm-alpine/Dockerfile +++ b/15.0/fpm-alpine/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/15.0/fpm/Dockerfile b/15.0/fpm/Dockerfile index 70fa5ac7..f9f79867 100644 --- a/15.0/fpm/Dockerfile +++ b/15.0/fpm/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/16.0-alpha/apache/Dockerfile b/16.0-alpha/apache/Dockerfile index a2f72111..a06f4d1d 100644 --- a/16.0-alpha/apache/Dockerfile +++ b/16.0-alpha/apache/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/16.0-alpha/fpm-alpine/Dockerfile b/16.0-alpha/fpm-alpine/Dockerfile index 619910e3..fdd23409 100644 --- a/16.0-alpha/fpm-alpine/Dockerfile +++ b/16.0-alpha/fpm-alpine/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ diff --git a/16.0-alpha/fpm/Dockerfile b/16.0-alpha/fpm/Dockerfile index 26490a01..b9ff14e6 100644 --- a/16.0-alpha/fpm/Dockerfile +++ b/16.0-alpha/fpm/Dockerfile @@ -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 install APCu-5.1.17; \ pecl install memcached-3.1.3; \ - pecl install redis-4.2.0; \ + pecl install redis-4.3.0; \ pecl install imagick-3.4.3; \ \ docker-php-ext-enable \ @@ -25,11 +25,47 @@ declare -A extras=( [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=( - [APCu]='5.1.17' - [memcached]='3.1.3' - [redis]='4.2.0' - [imagick]='3.4.3' + [APCu]="$apcu_version" + [memcached]="$memcached_version" + [redis]="$redis_version" + [imagick]="$imagick_version" ) variants=( |