1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

node-red-dashboard

This commit is contained in:
kev 2016-08-22 19:54:36 +08:00
parent d4bb04cac9
commit 854ddc5c8a
3 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,7 @@ RUN set -xe \
python-dev \ python-dev \
&& npm install -g node-red \ && npm install -g node-red \
node-red-admin \ node-red-admin \
node-red-dashboard \
&& apk del build-base \ && apk del build-base \
python-dev \ python-dev \
&& rm -rf /tmp/npm-* && rm -rf /tmp/npm-*

View File

@ -69,7 +69,15 @@ module.exports = {
$ cd ~/fig/node-red/ $ cd ~/fig/node-red/
$ docker-compose up -d $ docker-compose up -d
$ vi node-red/settings.js $ vi node-red/settings.js
$ docker-compose exec node-red bash
>>> cd /root/.node-red
>>> apk add -U build-base
>>> npm install node-red-node-irc
>>> npm install node-red-node-daemon
>>> exit
$ docker-compose restart $ docker-compose restart
``` ```
> Install nodes from [node-red-nodes](https://github.com/node-red/node-red-nodes).
[1]: http://nodered.org/ [1]: http://nodered.org/

View File

@ -17,6 +17,7 @@ RUN set -xe \
&& pip install rpi.gpio \ && pip install rpi.gpio \
&& npm install -g node-red \ && npm install -g node-red \
node-red-admin \ node-red-admin \
node-red-dashboard \
&& apk del build-base \ && apk del build-base \
python-dev \ python-dev \
&& rm -rf /tmp/npm-* && rm -rf /tmp/npm-*