Skip to content

Commit a0bd882

Browse files
committed
2024-07-30 Node-RED - old-menu branch - PR 2 of 2
Harmonises list of add-on nodes across old-menu and master branches. This includes removal of `node-red-node-rbe` which has been replaced by the built-in Filter node. See: - [Release notes](https://nodered.org/blog/2021/07/20/version-2-0-released#renamed-rbe-node-to-filter-node) Migrate from `node-red-contrib-themes/midnight-red` (deprecated) to `@node-red-contrib-themes/theme-collection` which supports many more themes. See: - [Node-RED themes list](https://github.com/node-red-contrib-themes/theme-collection#theme-list) Modify Dockerfile template: 1. No need to declare `EXTRA_PACKAGES` as an environment variable. It isn't needed in the container. The `ARG` reference is sufficient. 2. Remove redundant `apk update` command. The `--no-cache` flag on the `apk add` handles both package-list updates and their removal. It makes for a slightly smaller container. I discovered (and tested) this behaviour when posting a reply to: - [node-red-docker issue 338](node-red/node-red-docker#338). Signed-off-by: Phill Kelley <[email protected]>
1 parent cab2b2a commit a0bd882

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.templates/nodered/build.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ node_selection=$(whiptail --title "Node-RED nodes" --checklist --separate-output
88
"node-red-dashboard" " " "ON" \
99
"node-red-contrib-influxdb" " " "ON" \
1010
"node-red-contrib-boolean-logic" " " "ON" \
11-
"node-red-node-rbe" " " "ON" \
1211
"node-red-configurable-ping" " " "ON" \
1312
"node-red-node-openweathermap" " " "OFF" \
1413
"node-red-contrib-discord" " " "OFF" \
@@ -46,11 +45,17 @@ node_selection=$(whiptail --title "Node-RED nodes" --checklist --separate-output
4645
"node-red-contrib-generic-ble" " " "OFF" \
4746
"node-red-contrib-zigbee2mqtt" " " "OFF" \
4847
"node-red-contrib-vcgencmd" " " "OFF" \
49-
"node-red-contrib-themes/midnight-red" " " "OFF" \
5048
"node-red-contrib-tf-function" " " "OFF" \
5149
"node-red-contrib-tf-model" " " "OFF" \
5250
"node-red-contrib-post-object-detection" " " "OFF" \
5351
"node-red-contrib-bert-tokenizer" " " "OFF" \
52+
"node-red-contrib-boolean-logic-ultimate" " " "OFF" \
53+
"node-red-contrib-chartjs" " " "OFF" \
54+
"node-red-contrib-md5" " " "OFF" \
55+
"node-red-contrib-pushsafer" " " "OFF" \
56+
"node-red-node-tail" " " "OFF" \
57+
"@flowfuse/node-red-dashboard" " " "OFF" \
58+
"@node-red-contrib-themes/theme-collection" " " "OFF" \
5459
3>&1 1>&2 2>&3)
5560

5661
##echo "$check_selection"
@@ -70,20 +75,16 @@ FROM nodered/node-red:${DOCKERHUB_TAG}
7075
7176
# reference argument - omitted defaults to null
7277
ARG EXTRA_PACKAGES
73-
ENV EXTRA_PACKAGES=${EXTRA_PACKAGES}
7478
7579
# default user is node-red - need to be root to install packages
7680
USER root
7781
7882
# install packages
79-
RUN apk update && apk add --no-cache eudev-dev ${EXTRA_PACKAGES}
83+
RUN apk add --no-cache eudev-dev ${EXTRA_PACKAGES}
8084
8185
# switch back to default user
8286
USER node-red
8387
84-
# variable not needed inside running container
85-
ENV EXTRA_PACKAGES=
86-
8788
# add-on nodes follow
8889
8990
EOT

0 commit comments

Comments
 (0)