summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2018-12-11 00:07:49 +0100
committerJ0WI <J0WI@users.noreply.github.com>2019-01-11 02:03:04 +0100
commit9ecaf51c4f34a53c2a2f82b55af50777b1900366 (patch)
treec9fba9062a1cfa7cd33f3f0ffdc2a08ed6f9b9ee /update.sh
parent2994c70264487f7a485f0a48b7748685196a964c (diff)
Use PHP 7.3 for NC 15
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 8a323635..26e54424 100755
--- a/update.sh
+++ b/update.sh
@@ -3,7 +3,7 @@ set -eo pipefail
declare -A php_version=(
[default]='7.2'
- [12.0]='7.1'
+ [15.0]='7.3'
)
declare -A cmd=(
@@ -58,6 +58,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 +71,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 +83,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"