Skip to content

Commit dda6e3d

Browse files
committed
update nodejs to latest stable v26 (from v20)
1 parent f3fdeea commit dda6e3d

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

doc/docker/development/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55
################################################################################
66
ARG ARCH=
7-
FROM ${ARCH}node:20-bookworm-slim
7+
FROM ${ARCH}node:26-bookworm-slim
88
LABEL maintainer="rb@egroupware.org"
99

1010
ARG VERSION=dev-master

doc/docker/fpm/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
################################################################################
22
##
3-
## EGroupware FPM container using Ubuntu 20.04, NodeJS 20 and PHP 8.4 from ondrej/php PPA
3+
## EGroupware FPM container using Ubuntu 20.04, NodeJS 26 and PHP 8.5 from ondrej/php PPA
44
##
55
################################################################################
66
ARG ARCH=
@@ -86,15 +86,15 @@ RUN set -e \
8686
&& rm -f /usr/local/bin/composer.phar
8787
RUN set -e \
8888
&& cd /usr/share/egroupware \
89-
# install nodejs 20.x (Shoelace requires >= 14.17, Ubuntu 22.04 only has 12.x) \
89+
# install nodejs 26.x (Shoelace requires >= 14.17, Ubuntu 22.04 only has 12.x) \
9090
&& if [ "$TARGETPLATFORM" = "linux/ppc64le" ]; then \
91-
dist_node_v20=https://nodejs.org/dist/latest-v20.x/ \
92-
dist_node_v20_ppc64le=$(curl $dist_node_v20|grep ppc64le.tar.xz|cut -d'"' -f2) \
93-
curl -L $dist_node_v20$dist_node_v20_ppc64le | tar --directory=/usr/local/ -xJvf - ; \
91+
dist_node_v26=https://nodejs.org/dist/latest-v26.x/ \
92+
dist_node_v26_ppc64le=$(curl $dist_node_v26|grep ppc64le.tar.xz|cut -d'"' -f2) \
93+
curl -L $dist_node_v26$dist_node_v26_ppc64le | tar --directory=/usr/local/ -xJvf - ; \
9494
else \
9595
mkdir -p /etc/apt/keyrings \
9696
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
97-
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
97+
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_26.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
9898
&& apt-get update \
9999
&& apt-get install -y nodejs libatomic1 ; \
100100
fi \

doc/docker/fpm/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ BRANCH=$(echo $VERSION|sed 's/\..*$//')
2323
[ $BRANCH = "23" ] && {
2424
BRANCH=23.1
2525
DEFAULT_PHP_VERSION=8.4
26+
PHP_VERSION=$DEFAULT_PHP_VERSION
2627
}
2728
[ $VERSION = $BRANCH ] && VERSION="dev-$BRANCH"
2829

@@ -43,13 +44,14 @@ docker pull $BASE
4344

4445
# add further tags for default PHP version only
4546
[ $PHP_VERSION = $DEFAULT_PHP_VERSION -a "$BRANCH" != $VERSION -a "dev-${BRANCH}" != $VERSION ] && {
46-
extra_tags="--tag egroupware/egroupware:latest --tag egroupware/egroupware:$BRANCH"
47+
#extra_tags="--tag egroupware/egroupware:latest --tag egroupware/egroupware:$BRANCH"
48+
extra_tags="--tag egroupware/egroupware:$BRANCH"
4749
}
4850

4951
if docker buildx 2>&1 >/dev/null
5052
then
5153
# buildx available --> build a multi-platform image and push it for all tags
52-
docker buildx build --push --platform $PLATFORMS --build-arg "VERSION=$VERSION" --build-arg "PHP_VERSION=$PHP_VERSION" --tag egroupware/egroupware:$TAG $extra_tags .
54+
docker buildx build --no-cache --push --platform $PLATFORMS --build-arg "VERSION=$VERSION" --build-arg "PHP_VERSION=$PHP_VERSION" --tag egroupware/egroupware:$TAG $extra_tags .
5355
else
5456
# no buildx, eg. on dev only builds amd64!
5557
docker build --build-arg "VERSION=$VERSION" --build-arg "PHP_VERSION=$PHP_VERSION" --tag egroupware/egroupware:$TAG . && {

0 commit comments

Comments
 (0)