diff options
author | J0WI <J0WI@users.noreply.github.com> | 2019-01-14 18:48:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-14 18:48:11 +0100 |
commit | e8e33356ff876b9080d3322130c4b73ab2448655 (patch) | |
tree | fe0e39b08255a36b0feb7d6c81c2b88e0e81f03e /update.sh | |
parent | 57b9193096b8404e7982928c977e1f0bf32f3d51 (diff) | |
parent | 46c774cd8ccc83602116519a19526e479b3cf2a6 (diff) |
Merge pull request #573 from J0WI/php7314.0.6-fpm-alpine14.0.6-fpm14.0.6-apache14.0.613.0.10-fpm-alpine13.0.10-fpm13.0.10-apache13.0.10
Use PHP 7.3 for NC 15
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -2,8 +2,9 @@ set -eo pipefail declare -A php_version=( - [default]='7.2' - [12.0]='7.1' + [default]='7.3' + [14.0]='7.2' + [13.0]='7.2' ) declare -A cmd=( @@ -25,8 +26,8 @@ declare -A extras=( ) declare -A pecl_versions=( - [APCu]='5.1.15' - [memcached]='3.0.4' + [APCu]='5.1.16' + [memcached]='3.1.3' [redis]='4.2.0' [imagick]='3.4.3' ) @@ -58,6 +59,7 @@ travisEnv= function create_variant() { dir="$1/$variant" + phpVersion=${php_version[$version]-${php_version[default]}} # Create the version+variant directory with a Dockerfile. mkdir -p "$dir" @@ -70,7 +72,7 @@ function create_variant() { # Replace the variables. sed -ri -e ' - s/%%PHP_VERSION%%/'"${php_version[$version]-${php_version[default]}}"'/g; + s/%%PHP_VERSION%%/'"$phpVersion"'/g; s/%%VARIANT%%/'"$variant"'/g; s/%%VERSION%%/'"$fullversion"'/g; s/%%BASE_DOWNLOAD_URL%%/'"$2"'/g; @@ -82,6 +84,12 @@ function create_variant() { s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g; ' "$dir/Dockerfile" + if [[ "$phpVersion" != 7.3 ]]; then + sed -ri \ + -e '/libzip-dev/d' \ + "$dir/Dockerfile" + fi + # Copy the shell scripts for name in entrypoint cron; do cp "docker-$name.sh" "$dir/$name.sh" |