You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 24-minimal/README.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
NodeJS 22 minimal container image
1
+
NodeJS 24 minimal container image
2
2
=========================
3
3
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.
7
7
Users can choose between RHEL, CentOS and Fedora based images.
8
8
The RHEL images are available in the [Red Hat Container Catalog](https://access.redhat.com/containers/),
9
9
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
15
15
Description
16
16
-----------
17
17
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.
20
20
Node.js is a platform built on Chrome's JavaScript runtime for easily building
21
21
fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model
22
22
that makes it lightweight and efficient, perfect for data-intensive real-time applications
23
23
that run across distributed devices.
24
24
25
25
Usage in OpenShift
26
26
------------------
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
29
29
for running the resulting application.
30
30
31
31
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:
50
50
sourceStrategy:
51
51
from:
52
52
kind: ImageStreamTag
53
-
name: nodejs:22-ubi8
53
+
name: nodejs:24-ubi8
54
54
namespace: openshift
55
55
```
56
56
@@ -70,7 +70,7 @@ spec:
70
70
name: nodejs-runtime-image:latest
71
71
source:
72
72
dockerfile: |-
73
-
FROM nodejs:22-ubi8-minimal
73
+
FROM nodejs:24-ubi8-minimal
74
74
COPY src $HOME
75
75
CMD /usr/libexec/s2i/run
76
76
images:
@@ -84,7 +84,7 @@ spec:
84
84
dockerStrategy:
85
85
from:
86
86
kind: ImageStreamTag
87
-
name: nodejs:22-ubi8-minimal
87
+
name: nodejs:24-ubi8-minimal
88
88
triggers:
89
89
- imageChange: {}
90
90
type: ImageChange
@@ -114,11 +114,11 @@ To use the Node.js image in a Dockerfile, follow these steps:
114
114
#### 1. Pull the base builder and minimal runtime images
115
115
116
116
```
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
119
119
```
120
120
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).
122
122
123
123
#### 2. Pull an application code
124
124
@@ -141,7 +141,7 @@ For all these three parts, users can either setup all manually and use commands
141
141
##### 3.1. To use your own setup, create a Dockerfile with this content:
142
142
```
143
143
# First stage builds the application
144
-
FROM ubi8/nodejs-22 as builder
144
+
FROM ubi8/nodejs-24 as builder
145
145
146
146
# Add application sources
147
147
ADD app-src $HOME
@@ -150,7 +150,7 @@ ADD app-src $HOME
150
150
RUN npm install
151
151
152
152
# Second stage copies the application to the minimal image
153
-
FROM ubi8/nodejs-22-minimal
153
+
FROM ubi8/nodejs-24-minimal
154
154
155
155
# Copy the application source and build artifacts from the builder image to this one
156
156
COPY --from=builder $HOME $HOME
@@ -162,7 +162,7 @@ CMD npm run -d start
162
162
##### 3.2. To use the Source-to-Image scripts and build an image using a Dockerfile, create a Dockerfile with this content:
163
163
```
164
164
# First stage builds the application
165
-
FROM ubi8/nodejs-22 as builder
165
+
FROM ubi8/nodejs-24 as builder
166
166
167
167
# Add application sources to a directory that the assemble script expects them
168
168
# and set permissions so that the container runs without root access
@@ -175,7 +175,7 @@ USER 1001
175
175
RUN /usr/libexec/s2i/assemble
176
176
177
177
# Second stage copies the application to the minimal image
178
-
FROM ubi8/nodejs-22-minimal
178
+
FROM ubi8/nodejs-24-minimal
179
179
180
180
# Copy the application source and build artifacts from the builder image to this one
0 commit comments