Skip to content

Commit

Permalink
nodejs V12.x support added
Browse files Browse the repository at this point in the history
  • Loading branch information
hilschernetpi committed Feb 24, 2020
1 parent 35f2a85 commit 204b538
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#use arm7hf compatible OS
FROM balenalib/armv7hf-debian:stretch
FROM balenalib/armv7hf-debian:buster-20191223

#enable building ARM container on x86 machinery on the web (comment out next line if built on Raspberry)
RUN [ "cross-build-start" ]

#labeling
LABEL maintainer="netpi@hilscher.com" \
version="V0.9.3" \
version="V1.0.0" \
description="Node-RED with npix leds node to control LEDs of LED supporting NPIX modules"

#version
ENV HILSCHERNETPI_NODERED_NPIX_LEDS_VERSION 0.9.3
ENV HILSCHERNETPI_NODERED_NPIX_LEDS_VERSION 1.0.0

#copy files
COPY "./init.d/*" /etc/init.d/
Expand All @@ -20,12 +20,12 @@ COPY "./node-red-contrib-npix-leds/*" /tmp/
RUN apt-get update \
&& apt-get install curl build-essential python-dev \
#install node.js
&& curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - \
&& curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
&& apt-get install -y nodejs \
#install Node-RED
&& npm install -g --unsafe-perm node-red \
&& npm install -g --unsafe-perm node-red@1.0.3
#install node
&& mkdir /usr/lib/node_modules/node-red-contrib-npix-leds \
RUN mkdir /usr/lib/node_modules/node-red-contrib-npix-leds \
&& mv /tmp/npixleds.js /tmp/npixleds.html /tmp/package.json -t /usr/lib/node_modules/node-red-contrib-npix-leds \
&& cd /usr/lib/node_modules/node-red-contrib-npix-leds \
&& npm install \
Expand Down
2 changes: 1 addition & 1 deletion node-red-contrib-npix-leds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.9.2",
"description": "A Node-RED node to control LEDs of NPIX modules",
"dependencies": {
"rpi-gpio": "~0.8.1"
"rpi-gpio": "2.1.5"
},
"main": "npixleds.js",
"scripts": {
Expand Down

0 comments on commit 204b538

Please sign in to comment.