Docker, Gulp, Node-RED, undocumentation

Development of node-red nodes w. docker has one big issue

Its a common known design decision by the Docker team that they don’t want to have support for symbolic links in their volumes, which means that using the Node-RED docker images while developing Node-RED nodes has a critical flaw since it means that the approach recommended by the Node-RED team which involves creating symbolic links to the source directory from the root of the Node-RED runtime.

Gulp to the rescue… Just setup a pre-launch Gulp script to copy the contents into the root of the Node-RED instance.

import {Gulp} from "gulp";

let gulp:Gulp = require(‘gulp’);

gulp.task(‘default’, function () {
return gulp
.src([‘../../your_project/**/*’])
.pipe(gulp
.dest(‘./node_modules/your_project’));
});

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s