File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
# use armv7hf compatible base image
2
- FROM balenalib/armv7hf-debian:stretch
2
+ FROM balenalib/armv7hf-debian:buster-20191223
3
3
4
4
# dynamic build arguments coming from the /hooks/build file
5
5
ARG BUILD_DATE
@@ -14,7 +14,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
14
14
RUN [ "cross-build-start" ]
15
15
16
16
# version
17
- ENV HILSCHERNETPI_NODERED_NPIX_AI_VERSION 1.0.3
17
+ ENV HILSCHERNETPI_NODERED_NPIX_AI_VERSION 1.1.0
18
18
19
19
# labeling
20
20
LABEL maintainer=
"[email protected] " \
@@ -27,17 +27,20 @@ COPY "./node-red-contrib-npix-ai/*" /tmp/
27
27
28
28
# do installation
29
29
RUN apt-get update \
30
- && apt-get install curl build-essential python-dev \
30
+ && apt-get install curl build-essential python-dev git \
31
31
# 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 - \
33
33
&& apt-get install -y nodejs \
34
34
# install Node-RED
35
- && npm install -g --unsafe-perm node-red \
35
+ && npm install -g --unsafe-perm node-red@1.0.3 \
36
36
# install node
37
37
&& mkdir /usr/lib/node_modules/node-red-contrib-npix-ai \
38
38
&& mv /tmp/npixai.js /tmp/npixai.html /tmp/package.json -t /usr/lib/node_modules/node-red-contrib-npix-ai \
39
39
&& cd /usr/lib/node_modules/node-red-contrib-npix-ai \
40
40
&& 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 \
41
44
# clean up
42
45
&& rm -rf /tmp/* \
43
46
&& apt-get remove curl \
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Node-RED node to talk to NIOT-E-NPIX-4AI16U/I modules" ,
5
5
"dependencies" : {
6
- "node-ads1x15" : " 1.0.3" ,
7
6
"locks" : " 0.2.2"
8
7
},
9
8
"main" : " npixai.js" ,
You can’t perform that action at this time.
0 commit comments