Skip to content

Commit 53d8159

Browse files
authored
Use PHP 8.4 for Nextcloud 33 (#2533)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
1 parent 145c97a commit 53d8159

7 files changed

Lines changed: 22 additions & 12 deletions

File tree

33/apache/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
2-
FROM php:8.3-apache-trixie
2+
FROM php:8.4-apache-trixie
33

44
# entrypoint.sh and cron.sh dependencies
55
RUN set -ex; \
@@ -46,7 +46,7 @@ RUN set -ex; \
4646
; \
4747
\
4848
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
49-
docker-php-ext-configure ftp --with-openssl-dir=/usr; \
49+
docker-php-ext-configure ftp --with-ftp-ssl; \
5050
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
5151
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
5252
docker-php-ext-install -j "$(nproc)" \

33/fpm-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
2-
FROM php:8.3-fpm-alpine3.23
2+
FROM php:8.4-fpm-alpine3.23
33

44
# entrypoint.sh and cron.sh dependencies
55
RUN set -ex; \
@@ -42,7 +42,7 @@ RUN set -ex; \
4242
postgresql-dev \
4343
; \
4444
\
45-
docker-php-ext-configure ftp --with-openssl-dir=/usr; \
45+
docker-php-ext-configure ftp --with-ftp-ssl; \
4646
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
4747
docker-php-ext-configure ldap; \
4848
docker-php-ext-install -j "$(nproc)" \

33/fpm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
2-
FROM php:8.3-fpm-trixie
2+
FROM php:8.4-fpm-trixie
33

44
# entrypoint.sh and cron.sh dependencies
55
RUN set -ex; \
@@ -46,7 +46,7 @@ RUN set -ex; \
4646
; \
4747
\
4848
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
49-
docker-php-ext-configure ftp --with-openssl-dir=/usr; \
49+
docker-php-ext-configure ftp --with-ftp-ssl; \
5050
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
5151
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
5252
docker-php-ext-install -j "$(nproc)" \

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN set -ex; \
4141
postgresql-dev \
4242
; \
4343
\
44-
docker-php-ext-configure ftp --with-openssl-dir=/usr; \
44+
docker-php-ext-configure ftp %%FTP_OPTIONS%%; \
4545
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
4646
docker-php-ext-configure ldap; \
4747
docker-php-ext-install -j "$(nproc)" \

Dockerfile-debian.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN set -ex; \
4545
; \
4646
\
4747
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
48-
docker-php-ext-configure ftp --with-openssl-dir=/usr; \
48+
docker-php-ext-configure ftp %%FTP_OPTIONS%%; \
4949
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
5050
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
5151
docker-php-ext-install -j "$(nproc)" \

update.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ declare -A debian_version=(
1010
)
1111

1212
declare -A php_version=(
13-
[default]='8.3'
13+
[31]='8.3'
14+
[32]='8.3'
15+
[default]='8.4'
16+
)
17+
18+
declare -A ftp_options=(
19+
[31]='--with-openssl-dir=/usr'
20+
[32]='--with-openssl-dir=/usr'
21+
[default]='--with-ftp-ssl'
1422
)
1523

1624
declare -A cmd=(
@@ -105,6 +113,7 @@ function create_variant() {
105113
dir="$1/$variant"
106114
alpineVersion=${alpine_version[$version]-${alpine_version[default]}}
107115
debianVersion=${debian_version[$version]-${debian_version[default]}}
116+
ftp_options=${ftp_options[$version]-${ftp_options[default]}}
108117
phpVersion=${php_version[$version]-${php_version[default]}}
109118
crontabInt=${crontab_int[$version]-${crontab_int[default]}}
110119
url="https://github.com/nextcloud-releases/server/releases/download/v$fullversion/nextcloud-$fullversion.tar.bz2"
@@ -131,6 +140,7 @@ function create_variant() {
131140
s/%%CMD%%/'"${cmd[$variant]}"'/g;
132141
s|%%VARIANT_EXTRAS%%|'"${extras[$variant]}"'|g;
133142
s/%%APCU_VERSION%%/'"${pecl_versions[APCu]}"'/g;
143+
s|%%FTP_OPTIONS%%|'"$ftp_options"'|g;
134144
s/%%IGBINARY_VERSION%%/'"${pecl_versions[igbinary]}"'/g;
135145
s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g;
136146
s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/g;

versions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
"variant": "apache",
1010
"base": "debian",
1111
"baseVersion": "trixie",
12-
"phpVersion": "8.3"
12+
"phpVersion": "8.4"
1313
},
1414
"fpm": {
1515
"variant": "fpm",
1616
"base": "debian",
1717
"baseVersion": "trixie",
18-
"phpVersion": "8.3"
18+
"phpVersion": "8.4"
1919
},
2020
"fpm-alpine": {
2121
"variant": "fpm-alpine",
2222
"base": "alpine",
2323
"baseVersion": "3.23",
24-
"phpVersion": "8.3"
24+
"phpVersion": "8.4"
2525
}
2626
}
2727
},

0 commit comments

Comments
 (0)