summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2018-03-08 09:38:24 +0100
committerTilo Spannagel <development@tilosp.de>2018-03-08 09:38:24 +0100
commit7e390bc4b595ed31b421ce4ac97add1d332f4aca (patch)
tree8b73a27b7c74cf5c525e219e36b353f39ad89960 /update.sh
parentf0e9f272b03cb9f6da32317d4f24f6935b09ed98 (diff)
Use var for pecl package versions
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index dfe2170f..f8da8763 100755
--- a/update.sh
+++ b/update.sh
@@ -19,6 +19,12 @@ declare -A extras=(
[fpm-alpine]=''
)
+declare -A pecl_versions=(
+ [APCu]='5.1.10'
+ [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