Added node-red and pgadmin to the apps role

This commit is contained in:
b0xxer
2025-04-16 13:13:49 -05:00
parent 5deb8114ed
commit 98989b8a68
17 changed files with 659 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
trap stop SIGINT SIGTERM
function stop() {
kill $CHILD_PID
wait $CHILD_PID
}
node $NODE_OPTIONS node_modules/node-red/red.js --userDir /data $FLOWS "${@}" &
CHILD_PID="$!"
wait "${CHILD_PID}"
@@ -0,0 +1,10 @@
#!/bin/bash
set -ex
# Installing Devtools
if [[ ${TAG_SUFFIX} != *"minimal" ]]; then
echo "Installing devtools"
apk add --no-cache --virtual devtools build-base linux-headers udev python3
else
echo "Skip installing devtools"
fi
@@ -0,0 +1,10 @@
#!/bin/bash
set -ex
# Remove native GPIO node if exists
if [[ -d "/usr/src/node-red/node_modules/@node-red/nodes/core/hardware" ]]; then
echo "Removing native GPIO node"
rm -r /usr/src/node-red/node_modules/@node-red/nodes/core/hardware
else
echo "Skip removing native GPIO node"
fi