From b62edceebb07c3cda7401933e1adfe60e8296be6 Mon Sep 17 00:00:00 2001 From: Moss Cantwell Date: Fri, 22 Dec 2023 11:38:29 +1300 Subject: [PATCH] fix: update node version to supported node 16 EOL as of september 2023 https://nodejs.org/en/blog/announcements/nodejs16-eol --- images/rpmbuild-centos-stream8/Dockerfile | 2 +- images/rpmbuild-centos-stream9/Dockerfile | 3 ++- images/rpmbuild-centos7/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/images/rpmbuild-centos-stream8/Dockerfile b/images/rpmbuild-centos-stream8/Dockerfile index 27b4cd3..010a2c9 100644 --- a/images/rpmbuild-centos-stream8/Dockerfile +++ b/images/rpmbuild-centos-stream8/Dockerfile @@ -1,6 +1,6 @@ FROM ghcr.io/geonet/base-images/centos:stream8 # Install prerequisites -RUN dnf module enable -y nodejs:16 \ +RUN dnf module enable -y nodejs:20 \ && dnf install -y epel-release epel-next-release \ 'dnf-command(config-manager)' \ && dnf config-manager --set-enabled powertools diff --git a/images/rpmbuild-centos-stream9/Dockerfile b/images/rpmbuild-centos-stream9/Dockerfile index f4c1222..b759aad 100644 --- a/images/rpmbuild-centos-stream9/Dockerfile +++ b/images/rpmbuild-centos-stream9/Dockerfile @@ -1,7 +1,8 @@ FROM ghcr.io/geonet/base-images/centos:stream9 # Installing tools needed for rpmbuild -RUN dnf update -y && \ +RUN dnf module enable -y nodejs:20 && \ + dnf update -y && \ dnf install -y \ rpm-build rpmdevtools rpm-sign rpmlint git dnf-plugins-core nodejs npm make automake gcc \ gcc-c++ kernel-devel python3 glibc systemd openssl fontconfig-devel freetype freetype-devel boost unzip diff --git a/images/rpmbuild-centos7/Dockerfile b/images/rpmbuild-centos7/Dockerfile index babacb2..944fcce 100644 --- a/images/rpmbuild-centos7/Dockerfile +++ b/images/rpmbuild-centos7/Dockerfile @@ -1,6 +1,6 @@ FROM ghcr.io/geonet/base-images/centos:centos7 # Install prerequisites -RUN curl -O https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz \ +RUN curl -O https://nodejs.org/dist/latest-v20.x/node-v20.10.0-linux-arm64.tar.xz \ && tar --strip-components 1 -xvf node-v* -C /usr/local \ && yum install -y epel-release