mirror of
https://github.com/docker-library/php.git
synced 2025-08-20 13:53:47 +00:00
Swap update.sh to still generate for unknown versions and bump to 7.0.0beta1
Also, update generate-stackbrew-library.sh appropriately.
This commit is contained in:
@ -12,7 +12,7 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV PHP_VERSION 7.0.0alpha2
|
||||
ENV PHP_VERSION 7.0.0beta1
|
||||
|
||||
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||
RUN buildDeps=" \
|
||||
|
@ -25,7 +25,7 @@ ENV PHP_EXTRA_BUILD_DEPS apache2-dev
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2
|
||||
##</autogenerated>##
|
||||
|
||||
ENV PHP_VERSION 7.0.0alpha2
|
||||
ENV PHP_VERSION 7.0.0beta1
|
||||
|
||||
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||
RUN buildDeps=" \
|
||||
|
@ -13,7 +13,7 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV PHP_VERSION 7.0.0alpha2
|
||||
ENV PHP_VERSION 7.0.0beta1
|
||||
|
||||
# --enable-mysqlnd is included below because it's harder to compile after the fact the extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||
RUN buildDeps=" \
|
||||
|
@ -4,6 +4,7 @@ set -e
|
||||
declare -A aliases
|
||||
aliases=(
|
||||
[5.6]='5 latest'
|
||||
[7.0]='7'
|
||||
)
|
||||
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
17
update.sh
17
update.sh
@ -10,8 +10,7 @@ gpgKeys=(
|
||||
[5.3]='0B96609E270F565C13292B24C13C70B87267B52D 0A95E9A026542D53835E3F3A7DEC4E69FC9C83D7'
|
||||
)
|
||||
# see http://php.net/downloads.php
|
||||
alphaVersion="7.0"
|
||||
fullAlphaVersion="7.0.0alpha2"
|
||||
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
||||
versions=( "$@" )
|
||||
@ -32,15 +31,6 @@ for version in "${versions[@]}"; do
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ -z "$fullVersion" ]; then
|
||||
echo >&2 "ERROR: missing $version in $packagesUrl"
|
||||
# if version is alpha then we add the missing part
|
||||
if [ "$alphaVersion" == "$version" ]; then
|
||||
fullVersion="$fullAlphaVersion"
|
||||
else
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
gpgKey="${gpgKeys[$version]}"
|
||||
if [ -z "$gpgKey" ]; then
|
||||
@ -63,6 +53,11 @@ for version in "${versions[@]}"; do
|
||||
( set -x; cp docker-php-ext-* "$version/$variant/" )
|
||||
done
|
||||
|
||||
if [ -z "$fullVersion" ]; then
|
||||
echo >&2 "ERROR: missing $version in $packagesUrl"
|
||||
continue
|
||||
fi
|
||||
|
||||
(
|
||||
set -x
|
||||
sed -ri '
|
||||
|
Reference in New Issue
Block a user