Install docker as per latest instructions at
https://docs.docker.com/installation/
e.g. for Ubuntu 14.04
sudo apt-get update
sudo apt-get install linux-image-generic-lts-trusty wget
wget -qO- https://get.docker.com/ | sh
add yourself to docker group for when you get fed up with all the sudo below...
sudo usermod -aG docker $USER
sudo service docker restart
install Node-RED from the gist above
sudo docker build -rm -t davecj/node-red http://gist.github.com/raw/9435867/Dockerfile
or
sudo docker build -rm -t davecj/node-red git://gist.github.com/9435867.git
(or copy / paste the Dockerfile and build)
sudo docker build -rm -t davecj/node-red - < Dockerfile
Note: there will be errors during the npm install - but they should be warnings about gyp failing to build icu and serialport - but they will fail back to pre-compiled versions ok. So all should be ok.
run (as daemon)
sudo docker run -d -p 1880:1880 --name mynodered davecj/node-red
start a command line inside the container
sudo docker run -it --rm -p 1880:1880 --name mynodered davecj/node-red /bin/bash
show running containers
sudo docker ps -a
show all images (so you can tidy up)
sudo docker images
Hi Dave, I had a go at this but node:0.10.36-slim doesn't seem to have gyp, so it fails to install some packages when I run
Does this mean it will still work? I had another go with node:0.10.38 without "-slim", but then I get this:
https://gist.github.com/crouchingbadger/f5d2127f17e190aac9af
Also, when I want to include existing flow files from the host system what should I do?