Skip to content

Commit 72bafb2

Browse files
committed
nodejs V12.x support added
1 parent 372cad0 commit 72bafb2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Dockerfile

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#use armv7hf compatible base image
2-
FROM balenalib/armv7hf-debian:stretch
2+
FROM balenalib/armv7hf-debian:buster-20191223
33

44
#dynamic build arguments coming from the /hooks/build file
55
ARG BUILD_DATE
@@ -14,7 +14,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1414
RUN [ "cross-build-start" ]
1515

1616
#version
17-
ENV HILSCHERNETPI_NODERED_NPIX_AI_VERSION 1.0.3
17+
ENV HILSCHERNETPI_NODERED_NPIX_AI_VERSION 1.1.0
1818

1919
#labeling
2020
LABEL maintainer="[email protected]" \
@@ -27,17 +27,20 @@ COPY "./node-red-contrib-npix-ai/*" /tmp/
2727

2828
#do installation
2929
RUN apt-get update \
30-
&& apt-get install curl build-essential python-dev \
30+
&& apt-get install curl build-essential python-dev git \
3131
#install node.js
32-
&& curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - \
32+
&& curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
3333
&& apt-get install -y nodejs \
3434
#install Node-RED
35-
&& npm install -g --unsafe-perm node-red \
35+
&& npm install -g --unsafe-perm node-red@1.0.3 \
3636
#install node
3737
&& mkdir /usr/lib/node_modules/node-red-contrib-npix-ai \
3838
&& mv /tmp/npixai.js /tmp/npixai.html /tmp/package.json -t /usr/lib/node_modules/node-red-contrib-npix-ai \
3939
&& cd /usr/lib/node_modules/node-red-contrib-npix-ai \
4040
&& npm install \
41+
&& git clone https://github.com/jaycetde/node-ads1x15 /usr/lib/node_modules/node-red-contrib-npix-ai/node_modules/node-ads1x15 \
42+
&& cd /usr/lib/node_modules/node-red-contrib-npix-ai/node_modules/node-ads1x15 \
43+
&& npm install \
4144
#clean up
4245
&& rm -rf /tmp/* \
4346
&& apt-get remove curl \

node-red-contrib-npix-ai/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"description": "Node-RED node to talk to NIOT-E-NPIX-4AI16U/I modules",
55
"dependencies": {
6-
"node-ads1x15": "1.0.3",
76
"locks": "0.2.2"
87
},
98
"main": "npixai.js",

0 commit comments

Comments
 (0)