Downgrade Nextcloud 25 to PHP 8.0 due OpenSSL 1.1/Alpine 3.16 (#1990)

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2023-05-26 01:00:58 +00:00 committed by GitHub
parent 8394b4967c
commit 136a20de32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
FROM php:8.1-fpm-alpine3.16
FROM php:8.0-fpm-alpine3.16
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \

View File

@ -2,6 +2,8 @@
set -eo pipefail
declare -A alpine_version=(
# https://github.com/nextcloud/server/issues/32003
# Nextcloud 25 requires OpenSSL 1.1
[25]='3.16'
[default]='3.17'
)
@ -121,7 +123,16 @@ function create_variant() {
# Nextcloud 26+ recommends sysvsem
case "$version" in
24|25 )
25 )
case "$variant" in
fpm-alpine )
# Alpine 3.16 / OpenSSL 1.1 is only available for PHP 8.0
sed -ri -e '
s/FROM php:8\.1-fpm-alpine/FROM php:8.0-fpm-alpine/
' "$dir/Dockerfile"
;;
esac
sed -ri -e '
/sysvsem/d
' "$dir/Dockerfile"