Merge pull request #273 from nextcloud/APCu-5.1.11

Update APCu to version 5.1.11
This commit is contained in:
Tilo Spannagel 2018-03-08 10:39:04 +01:00 committed by GitHub
commit 5c05c9eba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 24 additions and 15 deletions

View File

@ -53,7 +53,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -53,7 +53,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -53,7 +53,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -53,7 +53,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -53,7 +53,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -49,7 +49,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -53,7 +53,7 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
APCu-5.1.11 \
memcached-3.0.4 \
redis-3.1.6 \
; \

View File

@ -49,9 +49,9 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
memcached-3.0.4 \
redis-3.1.6 \
APCu-%%APCU_VERSION%% \
memcached-%%MEMCACHED_VERSION%% \
redis-%%REDIS_VERSION%% \
; \
docker-php-ext-enable \
apcu \

View File

@ -53,9 +53,9 @@ RUN set -ex; \
zip \
; \
pecl install \
APCu-5.1.10 \
memcached-3.0.4 \
redis-3.1.6 \
APCu-%%APCU_VERSION%% \
memcached-%%MEMCACHED_VERSION%% \
redis-%%REDIS_VERSION%% \
; \
docker-php-ext-enable \
apcu \

View File

@ -19,6 +19,12 @@ declare -A extras=(
[fpm-alpine]=''
)
declare -A pecl_versions=(
[APCu]='5.1.11'
[memcached]='3.0.4'
[redis]='3.1.6'
)
# version_greater_or_equal A B returns whether A >= B
function version_greater_or_equal() {
[[ "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1" || "$1" == "$2" ]];
@ -57,6 +63,9 @@ for latest in "${latests[@]}"; do
s/%%VERSION%%/'"$latest"'/g;
s/%%CMD%%/'"${cmd[$variant]}"'/g;
s/%%VARIANT_EXTRAS%%/'"${extras[$variant]}"'/g;
s/%%APCU_VERSION%%/'"${pecl_versions[APCu]}"'/g;
s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/g;
s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g;
' "$version/$variant/Dockerfile"
# Copy the shell scripts