Skip to content

Commit 2d010fd

Browse files
committed
Add Node.js 24 (3/3 - s/22/24/)
1 parent 3bb9ea8 commit 2d010fd

14 files changed

+47
-47
lines changed

24-minimal/Dockerfile.c10s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV APP_ROOT=/opt/app-root \
1717
HOME=/opt/app-root/src \
1818
NPM_RUN=start \
1919
PLATFORM="el10" \
20-
NODEJS_VERSION=22 \
20+
NODEJS_VERSION=24 \
2121
NPM_RUN=start \
2222
NAME=nodejs
2323

@@ -51,7 +51,7 @@ LABEL summary="$SUMMARY" \
5151
# nodejs-full-i18n is included for error strings
5252
RUN INSTALL_PKGS="nodejs$NODEJS_VERSION nodejs-nodemon nodejs$NODEJS_VERSION-full-i18n npm findutils tar which" && \
5353
dnf -y --nodocs --setopt=install_weak_deps=0 install $INSTALL_PKGS && \
54-
node-22 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
54+
node-24 -v | grep -qe "^v$NODEJS_VERSION\." && echo "Found VERSION $NODEJS_VERSION" && \
5555
dnf clean all && \
5656
rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*
5757

24-minimal/Dockerfile.c9s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV APP_ROOT=/opt/app-root \
1717
HOME=/opt/app-root/src \
1818
NPM_RUN=start \
1919
PLATFORM="el9" \
20-
NODEJS_VERSION=22 \
20+
NODEJS_VERSION=24 \
2121
NPM_RUN=start \
2222
NAME=nodejs
2323

24-minimal/Dockerfile.fedora

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV APP_ROOT=/opt/app-root \
1717
HOME=/opt/app-root/src \
1818
NPM_RUN=start \
1919
PLATFORM="fedora" \
20-
NODEJS_VERSION=22 \
20+
NODEJS_VERSION=24 \
2121
NPM_RUN=start \
2222
NAME=nodejs
2323

24-minimal/Dockerfile.rhel10

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV APP_ROOT=/opt/app-root \
1717
HOME=/opt/app-root/src \
1818
NPM_RUN=start \
1919
PLATFORM="el10" \
20-
NODEJS_VERSION=22 \
20+
NODEJS_VERSION=24 \
2121
NPM_RUN=start \
2222
NAME=nodejs
2323

24-minimal/Dockerfile.rhel8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV APP_ROOT=/opt/app-root \
1717
HOME=/opt/app-root/src \
1818
NPM_RUN=start \
1919
PLATFORM="el8" \
20-
NODEJS_VERSION=22 \
20+
NODEJS_VERSION=24 \
2121
NPM_RUN=start \
2222
NAME=nodejs
2323

24-minimal/Dockerfile.rhel9

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV APP_ROOT=/opt/app-root \
1717
HOME=/opt/app-root/src \
1818
NPM_RUN=start \
1919
PLATFORM="el9" \
20-
NODEJS_VERSION=22 \
20+
NODEJS_VERSION=24 \
2121
NPM_RUN=start \
2222
NAME=nodejs
2323

24-minimal/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
NodeJS 22 minimal container image
1+
NodeJS 24 minimal container image
22
=========================
33

4-
This container image includes Node.JS 22 on top of a minimal base image for your Node.JS 22 applications. This image is designed to be used
5-
with the full-sized s2i-enabled Node.JS 22 image to build the application. The image can be used as a standalone s2i-enabled image as well,
6-
but compared to the full-sized Node.JS 22 image it will be missing many build-time dependencies.
4+
This container image includes Node.JS 24 on top of a minimal base image for your Node.JS 24 applications. This image is designed to be used
5+
with the full-sized s2i-enabled Node.JS 24 image to build the application. The image can be used as a standalone s2i-enabled image as well,
6+
but compared to the full-sized Node.JS 24 image it will be missing many build-time dependencies.
77
Users can choose between RHEL, CentOS and Fedora based images.
88
The RHEL images are available in the [Red Hat Container Catalog](https://access.redhat.com/containers/),
99
the CentOS Stream images are available in the [Quay.io](https://quay.io/organization/sclorg),
@@ -15,17 +15,17 @@ Note: while the examples in this README are calling `podman`, you can replace an
1515
Description
1616
-----------
1717

18-
Node.js 22 available as a minimal container is a base platform for
19-
running various Node.js 22 applications and frameworks.
18+
Node.js 24 available as a minimal container is a base platform for
19+
running various Node.js 24 applications and frameworks.
2020
Node.js is a platform built on Chrome's JavaScript runtime for easily building
2121
fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model
2222
that makes it lightweight and efficient, perfect for data-intensive real-time applications
2323
that run across distributed devices.
2424

2525
Usage in OpenShift
2626
------------------
27-
In this example, we will assume that you are using the `ubi8/nodejs-22` image, available via `nodejs:22-ubi8` imagestream tag in Openshift
28-
to build the application, as well as the `ubi8/nodejs-22-minimal` image, available via `nodejs:22-ubi8-minimal` image stream
27+
In this example, we will assume that you are using the `ubi8/nodejs-24` image, available via `nodejs:24-ubi8` imagestream tag in Openshift
28+
to build the application, as well as the `ubi8/nodejs-24-minimal` image, available via `nodejs:24-ubi8-minimal` image stream
2929
for running the resulting application.
3030

3131
With these two images we can create a [chained build](https://docs.openshift.com/container-platform/4.7/cicd/builds/advanced-build-operations.html#builds-chaining-builds_advanced-build-operations) in Openshift using two BuildConfigs:
@@ -50,7 +50,7 @@ spec:
5050
sourceStrategy:
5151
from:
5252
kind: ImageStreamTag
53-
name: nodejs:22-ubi8
53+
name: nodejs:24-ubi8
5454
namespace: openshift
5555
```
5656

@@ -70,7 +70,7 @@ spec:
7070
name: nodejs-runtime-image:latest
7171
source:
7272
dockerfile: |-
73-
FROM nodejs:22-ubi8-minimal
73+
FROM nodejs:24-ubi8-minimal
7474
COPY src $HOME
7575
CMD /usr/libexec/s2i/run
7676
images:
@@ -84,7 +84,7 @@ spec:
8484
dockerStrategy:
8585
from:
8686
kind: ImageStreamTag
87-
name: nodejs:22-ubi8-minimal
87+
name: nodejs:24-ubi8-minimal
8888
triggers:
8989
- imageChange: {}
9090
type: ImageChange
@@ -114,11 +114,11 @@ To use the Node.js image in a Dockerfile, follow these steps:
114114
#### 1. Pull the base builder and minimal runtime images
115115

116116
```
117-
podman pull ubi8/nodejs-22
118-
podman pull ubi8/nodejs-22-minimal
117+
podman pull ubi8/nodejs-24
118+
podman pull ubi8/nodejs-24-minimal
119119
```
120120

121-
The UBI images `ubi8/nodejs-22` and `ubi8/nodejs-22-minimal` that are used in this example are both usable and freely redistributable under the terms of the UBI End User License Agreement (EULA). See more about UBI at [UBI FAQ](https://developers.redhat.com/articles/ubi-faq).
121+
The UBI images `ubi8/nodejs-24` and `ubi8/nodejs-24-minimal` that are used in this example are both usable and freely redistributable under the terms of the UBI End User License Agreement (EULA). See more about UBI at [UBI FAQ](https://developers.redhat.com/articles/ubi-faq).
122122

123123
#### 2. Pull an application code
124124

@@ -141,7 +141,7 @@ For all these three parts, users can either setup all manually and use commands
141141
##### 3.1. To use your own setup, create a Dockerfile with this content:
142142
```
143143
# First stage builds the application
144-
FROM ubi8/nodejs-22 as builder
144+
FROM ubi8/nodejs-24 as builder
145145
146146
# Add application sources
147147
ADD app-src $HOME
@@ -150,7 +150,7 @@ ADD app-src $HOME
150150
RUN npm install
151151
152152
# Second stage copies the application to the minimal image
153-
FROM ubi8/nodejs-22-minimal
153+
FROM ubi8/nodejs-24-minimal
154154
155155
# Copy the application source and build artifacts from the builder image to this one
156156
COPY --from=builder $HOME $HOME
@@ -162,7 +162,7 @@ CMD npm run -d start
162162
##### 3.2. To use the Source-to-Image scripts and build an image using a Dockerfile, create a Dockerfile with this content:
163163
```
164164
# First stage builds the application
165-
FROM ubi8/nodejs-22 as builder
165+
FROM ubi8/nodejs-24 as builder
166166
167167
# Add application sources to a directory that the assemble script expects them
168168
# and set permissions so that the container runs without root access
@@ -175,7 +175,7 @@ USER 1001
175175
RUN /usr/libexec/s2i/assemble
176176
177177
# Second stage copies the application to the minimal image
178-
FROM ubi8/nodejs-22-minimal
178+
FROM ubi8/nodejs-24-minimal
179179
180180
# Copy the application source and build artifacts from the builder image to this one
181181
COPY --from=builder $HOME $HOME

24/Dockerfile.c10s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ EXPOSE 8080
1616
# Expose ports:
1717
# * 8080 - Unprivileged port used by nodejs application
1818

19-
ENV NODEJS_VERSION=22 \
19+
ENV NODEJS_VERSION=24 \
2020
NPM_RUN=start \
2121
NAME=nodejs \
2222
NPM_CONFIG_PREFIX=$HOME/.npm-global \
2323
PATH=$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$PATH \
24-
CNB_STACK_ID=com.redhat.stacks.c10s-nodejs-22 \
24+
CNB_STACK_ID=com.redhat.stacks.c10s-nodejs-24 \
2525
CNB_USER_ID=1001 \
2626
CNB_GROUP_ID=0
2727

@@ -41,7 +41,7 @@ LABEL summary="$SUMMARY" \
4141
io.openshift.tags="builder,$NAME,${NAME}${NODEJS_VERSION}" \
4242
io.openshift.s2i.scripts-url="image:///usr/libexec/s2i" \
4343
io.s2i.scripts-url="image:///usr/libexec/s2i" \
44-
io.buildpacks.stack.id="com.redhat.stacks.c10s-nodejs-22" \
44+
io.buildpacks.stack.id="com.redhat.stacks.c10s-nodejs-24" \
4545
com.redhat.dev-mode="DEV_MODE:false" \
4646
com.redhat.deployments-dir="${APP_ROOT}/src" \
4747
com.redhat.dev-mode.port="DEBUG_PORT:5858" \

24/Dockerfile.c9s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ EXPOSE 8080
1616
# Expose ports:
1717
# * 8080 - Unprivileged port used by nodejs application
1818

19-
ENV NODEJS_VERSION=22 \
19+
ENV NODEJS_VERSION=24 \
2020
NPM_RUN=start \
2121
NAME=nodejs \
2222
NPM_CONFIG_PREFIX=$HOME/.npm-global \
2323
PATH=$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$PATH \
24-
CNB_STACK_ID=com.redhat.stacks.c9s-nodejs-22 \
24+
CNB_STACK_ID=com.redhat.stacks.c9s-nodejs-24 \
2525
CNB_USER_ID=1001 \
2626
CNB_GROUP_ID=0
2727

@@ -41,7 +41,7 @@ LABEL summary="$SUMMARY" \
4141
io.openshift.tags="builder,$NAME,${NAME}${NODEJS_VERSION}" \
4242
io.openshift.s2i.scripts-url="image:///usr/libexec/s2i" \
4343
io.s2i.scripts-url="image:///usr/libexec/s2i" \
44-
io.buildpacks.stack.id="com.redhat.stacks.c9s-nodejs-22" \
44+
io.buildpacks.stack.id="com.redhat.stacks.c9s-nodejs-24" \
4545
com.redhat.dev-mode="DEV_MODE:false" \
4646
com.redhat.deployments-dir="${APP_ROOT}/src" \
4747
com.redhat.dev-mode.port="DEBUG_PORT:5858" \

24/Dockerfile.fedora

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ EXPOSE 8080
1616
# Expose ports:
1717
# * 8080 - Unprivileged port used by nodejs application
1818

19-
ENV NODEJS_VERSION=22 \
19+
ENV NODEJS_VERSION=24 \
2020
NPM_RUN=start \
2121
NAME=nodejs \
2222
NPM_CONFIG_PREFIX=$HOME/.npm-global \

0 commit comments

Comments
 (0)