Skip to content

Commit 5fef381

Browse files
authored
Merge pull request #496 from hardillb/5.0-beta-setup
5.0 beta setup dev branch
2 parents b256886 + 3d6b569 commit 5fef381

File tree

2 files changed

+31
-77
lines changed

2 files changed

+31
-77
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ jobs:
3030
strategy:
3131
max-parallel: 2
3232
matrix:
33-
node: [18, 20, 22]
33+
node: [24]
3434
suffix: ["", "-minimal"]
3535

3636
# Steps represent a sequence of tasks that will be executed as part of the job
3737
steps:
3838
-
3939
name: Checkout
40-
uses: actions/checkout@v4.1.2
40+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4141
- name: Show Env
4242
run: env
4343
-
4444
name: Docker Metadata
4545
id: meta
46-
uses: docker/metadata-action@v5
46+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
4747
with:
4848
flavor: |
4949
latest=false
@@ -57,7 +57,7 @@ jobs:
5757
5858
-
5959
name: Setup QEMU
60-
uses: docker/setup-qemu-action@v3
60+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
6161
with:
6262
platforms: arm64
6363
-
@@ -78,7 +78,7 @@ jobs:
7878
port: 2023
7979
-
8080
name: Setup Docker buildx
81-
uses: docker/setup-buildx-action@v3
81+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
8282
with:
8383
append: |
8484
- endpoint: ssh://nr@${{ secrets.SSH_REMOTE_HOST }}:2023
@@ -182,21 +182,21 @@ jobs:
182182
# echo "::set-output name=buildVersion::$VERSION"
183183
-
184184
name: Login to DockerHub
185-
uses: docker/login-action@v3
185+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
186186
with:
187187
username: ${{ secrets.DOCKERHUB_USERNAME }}
188188
password: ${{ secrets.DOCKERHUB_TOKEN }}
189189
-
190190
name: Login to GitHub Container Registry
191-
uses: docker/login-action@v3
191+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
192192
with:
193193
registry: ghcr.io
194194
username: ${{ github.repository_owner }}
195195
password: ${{ secrets.GITHUB_TOKEN }}
196196
-
197197
name: Build and push
198198
id: build-push
199-
uses: docker/build-push-action@v5
199+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
200200
with:
201201
context: .
202202
platforms: ${{ steps.nrVersion.outputs.platforms }}
@@ -224,20 +224,20 @@ jobs:
224224

225225
steps:
226226
- name: Checkout
227-
uses: actions/checkout@v4.1.2
227+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
228228
- name: Setup QEMU
229-
uses: docker/setup-qemu-action@v3
229+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
230230
with:
231231
image: tonistiigi/binfmt:qemu-v7.0.0-28
232232
- name: Setup Docker buildx
233-
uses: docker/setup-buildx-action@v3
233+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
234234
- name: Login to DockerHub
235-
uses: docker/login-action@v3
235+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
236236
with:
237237
username: ${{ secrets.DOCKERHUB_USERNAME }}
238238
password: ${{ secrets.DOCKERHUB_TOKEN }}
239239
- name: Login to GitHub Container Registry
240-
uses: docker/login-action@v3
240+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
241241
with:
242242
registry: ghcr.io
243243
username: ${{ github.repository_owner }}
@@ -248,7 +248,7 @@ jobs:
248248
run : echo "date=$(date +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
249249
- name: Docker Metadata
250250
id: meta
251-
uses: docker/metadata-action@v5
251+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
252252
with:
253253
flavor: |
254254
latest=false
@@ -318,7 +318,7 @@ jobs:
318318
319319
- name: Build and push
320320
id: build-push
321-
uses: docker/build-push-action@v5
321+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
322322
with:
323323
context: .
324324
platforms: linux/amd64, linux/arm64, linux/arm/v7

README.md

Lines changed: 16 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Let's dissect that command:
2828
-p 1880:1880 - connect local port 1880 to the exposed internal port 1880
2929
-v node_red_data:/data - mount the host node_red_data directory to the container /data directory so any changes made to flows are persisted
3030
--name mynodered - give this machine a friendly local name
31-
nodered/node-red - the image to base it on - currently Node-RED v4.1.2
31+
nodered/node-red - the image to base it on - currently Node-RED v5.0.0-beta.0
3232

3333

3434

@@ -37,9 +37,9 @@ Running that command should give a terminal window with a running instance of No
3737
Welcome to Node-RED
3838
===================
3939

40-
10 Oct 12:57:10 - [info] Node-RED version: v4.1.2
41-
10 Oct 12:57:10 - [info] Node.js version: v18.19.0
42-
10 Oct 12:57:10 - [info] Linux 6.6.13-100.fc38.x86_64 x64 LE
40+
10 Oct 12:57:10 - [info] Node-RED version: v5.0.0-beta.0
41+
10 Oct 12:57:10 - [info] Node.js version: v24.11.1
42+
10 Oct 12:57:10 - [info] Linux 6.17.5-200.fc42.x86_64 x64 LE
4343
10 Oct 12:57:11 - [info] Loading palette nodes
4444
10 Oct 12:57:16 - [info] Settings file : /data/settings.js
4545
10 Oct 12:57:16 - [info] Context store : 'default' [module=memory]
@@ -116,81 +116,35 @@ The following table shows the variety of provided Node-RED images.
116116

117117
| **Tag** |**Node**| **Arch** | **Python** |**Dev**| **Base Image** |
118118
|----------------------------|--------|----------|------------|-------|----------------------------|
119-
| 4.1.2-18 | 18 | amd64 | 3.x | yes | amd64/node:18-alpine |
120-
| | 18 | arm32v7 | 3.x | yes | arm32v7/node:18-alpine |
121-
| | 18 | arm64v8 | 3.x | yes | arm64v8/node:18-alpine |
122-
| | 18 | i386 | 3.x | yes | i386/node:18-alpine |
119+
| 5.0.0-beta.0-24 | 24 | amd64 | 3.x | yes | amd64/node:24-alpine |
120+
| | 24 | arm32v7 | 3.x | yes | arm32v7/node:24-alpine |
121+
| | 24 | arm64v8 | 3.x | yes | arm64v8/node:24-alpine |
122+
| | 24 | i386 | 3.x | yes | i386/node:24-alpine |
123123
| | | | | | |
124-
| 4.1.2-18-minimal | 18 | amd64 | no | no | amd64/node:18-alpine |
125-
| | 18 | arm32v7 | no | no | arm32v7/node:18-alpine |
126-
| | 18 | arm64v8 | no | no | arm64v8/node:18-alpine |
127-
| | 18 | i386 | no | no | i386/node:18-alpine |
128-
129-
| **Tag** |**Node**| **Arch** | **Python** |**Dev**| **Base Image** |
130-
|----------------------------|--------|----------|------------|-------|----------------------------|
131-
| 4.1.2-20 | 20 | amd64 | 3.x | yes | amd64/node:20-alpine |
132-
| | 20 | arm32v7 | 3.x | yes | arm32v7/node:20-alpine |
133-
| | 20 | arm64v8 | 3.x | yes | arm64v8/node:20-alpine |
134-
| | 20 | i386 | 3.x | yes | i386/node:20-alpine |
135-
| | | | | | |
136-
| 4.1.2-20-minimal | 20 | amd64 | no | no | amd64/node:20-alpine |
137-
| | 20 | arm32v7 | no | no | arm32v7/node:20-alpine |
138-
| | 20 | arm64v8 | no | no | arm64v8/node:20-alpine |
139-
| | 20 | i386 | no | no | i386/node:20-alpine |
140-
| | | | | | |
141-
| 4.1.2-debian | 20 | amd64 | 3.x | yes | amd64/node:20-buster-slim |
142-
| | 20 | arm32v7 | 3.x | yes | amd64/node:20-buster-slim |
143-
| | 20 | arm64v8 | 3.x | yes | amd64/node:20-buster-slim |
144-
145-
| **Tag** |**Node**| **Arch** | **Python** |**Dev**| **Base Image** |
146-
|----------------------------|--------|----------|------------|-------|----------------------------|
147-
| 4.1.2-22 | 22 | amd64 | 3.x | yes | amd64/node:22-alpine |
148-
| | 22 | arm32v7 | 3.x | yes | arm32v7/node:22-alpine |
149-
| | 22 | arm64v8 | 3.x | yes | arm64v8/node:22-alpine |
150-
| | 22 | i386 | 3.x | yes | i386/node:22-alpine |
151-
| | | | | | |
152-
| 4.1.2-22-minimal | 22 | amd64 | no | no | amd64/node:22-alpine |
153-
| | 22 | arm32v7 | no | no | arm32v7/node:22-alpine |
154-
| | 22 | arm64v8 | no | no | arm64v8/node:22-alpine |
155-
| | 22 | i386 | no | no | i386/node:22-alpine |
124+
| 5.0.0-beta.0-24-minimal | 24 | amd64 | no | no | amd64/node:24-alpine |
125+
| | 24 | arm32v7 | no | no | arm32v7/node:24-alpine |
126+
| | 24 | arm64v8 | no | no | arm64v8/node:24-alpine |
127+
| | 24 | i386 | no | no | i386/node:24-alpine |
156128

157129
- All images have bash, tzdata, nano, curl, git, openssl and openssh-client pre-installed to support Node-RED's Projects feature.
158130

159131
## Manifest Lists
160132
The following table shows the provided Manifest Lists.
161133

162-
| **Tag** | **Node-RED Base Image** |
163-
|----------------------------------------|--------------------------------------------|
164-
| latest, 4.1.2, | nodered/node-red:4.1.2-20 |
165-
| latest-20, 4.1.2-20 | |
166-
| | |
167-
| | |
168-
| latest-minimal, 4.1.2-minimal, | nodered/node-red:4.1.2-20-minimal |
169-
| latest-20-minimal, 4.1.2-20-minimal | |
170-
| | |
171-
| latest-debian | nodered/node-red:latest-debian |
172-
173-
174-
| **Tag** | **Node-RED Base Image** |
175-
|----------------------------------------|--------------------------------------------|
176-
| latest-18, 4.1.2-18 | nodered/node-red:4.1.2-18 |
177-
| | |
178-
| latest-18-minimal, 4.1.2-18-minimal | nodered/node-red:4.1.2-18-minimal |
179-
180134

181135
| **Tag** | **Node-RED Base Image** |
182136
|----------------------------------------|--------------------------------------------|
183-
| latest-22, 4.1.2-22 | nodered/node-red:4.1.2-22 |
137+
| latest-22, 5.0.0-beta.0-24 | nodered/node-red:5.0.0-beta.0-24 |
184138
| | |
185-
| latest-22-minimal, 4.1.2-22-minimal | nodered/node-red:4.1.2-22-minimal
139+
| latest-24-minimal, 5.0.0-beta.0-24-minimal | nodered/node-red:5.0.0-beta.0-24-minimal
186140

187141

188142
With the support of Docker manifest list, there is no need to explicitly add the tag for the architecture to use.
189143
When a docker run command or docker service command or docker stack command is executed, docker checks which architecture is required and verifies if it is available in the docker repository. If it does, docker pulls the matching image for it.
190144

191145
Therefore all tags regarding Raspberry PI's are dropped.
192146

193-
For example: suppose you are running on a Raspberry PI 3B, which has `arm32v7` as architecture. Then just run the following command to pull the image (tagged by `4.1.2-20`), and run the container.
147+
For example: suppose you are running on a Raspberry PI 3B, which has `arm32v7` as architecture. Then just run the following command to pull the image (tagged by `5.0.0-beta.0-24`), and run the container.
194148

195149

196150
```
@@ -330,7 +284,7 @@ Docker build process, the dependencies are installed under `/usr/src/node-red`.
330284
The main sections to modify are
331285

332286
"dependencies": {
333-
"node-red": "^4.1.2", <-- set the version of Node-RED here
287+
"node-red": "^5.0.0-beta.0", <-- set the version of Node-RED here
334288
"node-red-dashboard": "*" <-- add any extra npm packages here
335289
},
336290

0 commit comments

Comments
 (0)