• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Several questions
#4
I see two options:

1. You could use our Node-RED example https://hub.docker.com/r/hilschernetpi/netpi-nodered where the FRAM node is already preinstalled
    
In the related source code Docker file build script you see how this Node-RED installs this node under https://github.com/HilscherAutomation/ne...Dockerfile

2. You can install it in your own Node-RED as the Dockerfile is doing it. 

I translated the different Docker file command for you to use in a bash script


Code:
FRAM_NODE=netPI-nodered-fram
FRAM_NODE_VERSION=1.2.0
FRAM_NODE_DIR=/tmp/$FRAM_NODE-$FRAM_NODE_VERSION
curl https://codeload.github.com/HilscherAutomation/$FRAM_NODE/tar.gz/$FRAM_NODE_VERSION -o /tmp/$FRAM_NODE
tar -xvf /tmp/$FRAM_NODE -C /tmp/
mkdir /usr/lib/node_modules_tmp/node-red-contrib-fram
mv $FRAM_NODE_DIR/node-red-contrib-fram/fram.js \
    $FRAM_NODE_DIR/node-red-contrib-fram/fram.html \
    $FRAM_NODE_DIR/node-red-contrib-fram/package.json \
    -t /usr/lib/node_modules_tmp/node-red-contrib-fram
cd /usr/lib/node_modules_tmp/node-red-contrib-fram
npm install

Starting a second Node-RED instance as you proposed is possible but I can't recommend since the first Node-RED occupies the standard port 1880 already and the second container cannot start and would need another port. This is only possible if you would start both containers in bridged mode ... and use the port mapping feature of Docker. 

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Several questions - by rlahnsteiner - May-6th-2021, 11:48 AM
RE: Several questions - by Armin@netPI - May-6th-2021, 12:35 PM
RE: Several questions - by rlahnsteiner - May-7th-2021, 10:04 AM
RE: Several questions - by Armin@netPI - May-7th-2021, 11:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)