Added node-red and pgadmin to the apps role
This commit is contained in:
+14
@@ -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
|
||||
Reference in New Issue
Block a user