Work in progress node-red dev & deploy docker image
329
I'm still learning how to use docker, so there are probably mistakes. Also, this is still a work in progress. Don't rely on this for production. Would welcome any feedback and advice.
node-red seems like an awesome tool for dataflow/functional-reactive style programming. However, the development and deployment model doesn't make sense to me: by default the runtime and created flows are in the user's global scope. Although you can pass arguments to the runtime to change this, it feels cumbersome to me.
As an amateur python programmer, it makes more sense to me to have a setup similar to python's "virtualenv". My aim is a docker image that generates a 'blank-canvas' node-red container. You can then construct, deploy, and commit flows in the container to a new docker image. This image can then be deployed to wherever (e.g. IBM Bluemix or Amazon AWS Container Services) and you can start pushing data through the flows you've constructed.
Have yet to test this, but I think the commands and workflow look like:
This should result in the creation of a new docker image with the node-red runtime and your saved flows, which you can then push to wherever. If you want to install additional packages from npm:
While developing your flows, you can more simply do this (I think, test it out first before risking hours of work):
Content type
Image
Digest
Size
257.9 MB
Last updated
almost 11 years ago
docker pull markmuir87/node-red