From f14204333a45081d40d9be6d9d483069a76ec869 Mon Sep 17 00:00:00 2001 From: Cooper Maa Date: Fri, 17 Jul 2015 15:02:10 +0000 Subject: [PATCH 1/2] Add a note to installation section of README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index bc5455a..dfca320 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ this repository and prepare it for use with: $ cd node-webduino $ npm install +Upgrade socket.io of the socketstream dependency package. There is a bug "can't set +headers after they are sent" in socket.io < 0.9.15, so we have to upgrade + socket.io. + + cd node_modules/socketstream + npm install socket.io@0.9.15 --save + +Note the lastest socket.io seems not compatible with socketstream. + ## Usage Upload Standard Firmata to your Arduino. Better to change samplingInterval from @@ -51,3 +60,4 @@ Then run following to start node-webduino: Credits: Developers of node.js, Arduino, SocketStream, AngularJS, firmata and people who involved in improving Web technologies. + From 63b4c49bd06df338ba3fe8409eefc4b98b363e17 Mon Sep 17 00:00:00 2001 From: Cooper Maa Date: Fri, 17 Jul 2015 15:03:28 +0000 Subject: [PATCH 2/2] Use official node:0.12-onbuild image as base dockerfiles/ repository was removed from hub.docker.com Signed-off-by: Cooper Maa --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f7f419..77bc38c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM dockerfile/nodejs-runtime +FROM node:0.12-onbuild MAINTAINER Cooper Maa RUN npm install -g coffee-script @@ -10,4 +10,5 @@ RUN npm install -g coffee-script RUN cd node_modules/socketstream && \ npm install socket.io@0.9.15 --save -EXPOSE 3000 \ No newline at end of file +EXPOSE 3000 +