Skip to content

Commit

Permalink
Merge pull request #273 from nextcloud/APCu-5.1.11
Browse files Browse the repository at this point in the history
Update APCu to version 5.1.11
  • Loading branch information
tilosp authored Mar 8, 2018
2 parents f0e9f27 + 33bc471 commit 5c05c9e
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion 11.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 11.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 11.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 12.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 12.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 12.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 13.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 13.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
2 changes: 1 addition & 1 deletion 13.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
; \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
9 changes: 9 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]];
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5c05c9e

Please sign in to comment.