VILLASconf is a Node-RED-based tool for graphical creation and management of VILLASnode configuration files.
git clone https://git-ce.rwth-aachen.de/acs/private/research/target-x/villasconf.gitvillasconf/
├── villas-conf-node/
│ ├── nodes/
│ └── package.json
├── Dockerfile
├── settings.js
└── README.mdBefore running the container, make sure to build the Docker image.
Use the provided Dockerfile (in this project folder) to build a custom image with the VILLASconf:
docker build -t my-villas-image .After building the image, you can start the container using:
docker run -d \
--name villas-nodered \
-p 1880:1880 \
-v $(pwd)/data:/data \
my-villas-imageCreate two files inside the villas-conf-node/nodes directory:
villasconf/villas-conf-node/nodes/
├── MyNode.js
├── MyNode.html"node-red": {
"nodes": {
"MyNode": "nodes/MyNode.js"
}
}npm install ./villas-conf-nodedocker restart <container ID>In a development setup using a Dockerfile that includes nodemon, you can start Node-RED like this:
/usr/src/node-red/node_modules/.bin/nodemon $NODE_OPTIONS node_modules/node-red/red.js --userDir /data $FLOWS "${@}"MIT License (c) RWTH Aachen / ACS