Add initial support for ZWave JS (#1766)

* Add initial support for ZWave JS

* fix version

* fix lint

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Charles Garwood <cgarwood@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update zwave_js/config.json

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Address comments

* Fix install for all archs

* make lint happy

* Fix build

* fix comment

* Fix and clean zwave_js add-on (#1780)

* Use new bashio feature

* address ozw

* update docs

* Add debug support

* fix template

* Fix lint

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Charles Garwood <cgarwood@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Pascal Vizeli
2021-01-25 20:20:12 +01:00
committed by GitHub
parent 1caa587fb4
commit c6fe889e32
17 changed files with 401 additions and 110 deletions

26
zwave_js/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
ARG BUILD_FROM
FROM ${BUILD_FROM}
ARG ZWAVEJS_SERVER_VERSION
# Install Z-Wave JS
WORKDIR /usr/src
RUN \
set -x \
&& apk add --no-cache \
nodejs \
npm \
&& apk add --no-cache --virtual .build-dependencies \
build-base \
git \
linux-headers \
python3 \
\
&& npm config set unsafe-perm \
&& npm install -g @zwave-js/server@${ZWAVEJS_SERVER_VERSION} \
\
&& apk del --no-cache \
.build-dependencies
WORKDIR /
COPY rootfs /