added zwave support

This commit is contained in:
buanet
2019-10-23 10:51:15 +02:00
parent 7e31f7f18a
commit b67ca2de19
15 changed files with 108 additions and 78 deletions

View File

@@ -1 +1 @@
v3.1.3beta v3.1.4beta

View File

@@ -78,30 +78,12 @@ after_success:
#manifest for image: buanet/iobroker:latest #manifest for image: buanet/iobroker:latest
cat manifest.yaml | sed "s/\$DOCKERTAG/latest/g" > manifestlatest.yaml cat manifest.yaml | sed "s/\$DOCKERTAG/latest/g" > manifestlatest.yaml
#manifest for image: buanet/iobroker:VERSION-amd64
#cat manifest_amd64.yml | sed "s/\$VERSION/${VERSION}/g" > manifest_amd64.yaml
#manifest for image: buanet/iobroker:VERSION-armv7hf
#cat manifest_armv7hf.yml | sed "s/\$VERSION/${VERSION}/g" > manifest_armv7hf.yaml
#manifest for image: buanet/iobroker:VERSION-aarch64
#cat manifest_aarch64.yml | sed "s/\$VERSION/${VERSION}/g" > manifest_aarch64.yaml
#push to hub #push to hub
mv manifestversion.yaml iobroker.yaml mv manifestversion.yaml iobroker.yaml
./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml ./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml
mv manifestlatest.yaml iobroker.yaml mv manifestlatest.yaml iobroker.yaml
./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml ./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml
#mv manifest_amd64.yaml manifest.yaml
#./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec manifest.yaml
#mv manifest_armv7hf.yaml manifest.yaml
#./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec manifest.yaml
#mv manifest_aarch64.yaml manifest.yaml
#./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec manifest.yaml
fi fi
if [ "$TRAVIS_BRANCH" == "beta" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$JOB_NAME" == "Manifest" ]; then if [ "$TRAVIS_BRANCH" == "beta" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$JOB_NAME" == "Manifest" ]; then
@@ -114,28 +96,10 @@ after_success:
#manifest for image: buanet/iobroker:beta #manifest for image: buanet/iobroker:beta
cat manifest.yaml | sed "s/\$DOCKERTAG/beta/g" > manifestbeta.yaml cat manifest.yaml | sed "s/\$DOCKERTAG/beta/g" > manifestbeta.yaml
#manifest for image: buanet/iobroker:VERSION-amd64
#cat manifest_amd64.yml | sed "s/\$VERSION/${VERSION}/g" > manifest_amd64.yaml
#manifest for image: buanet/iobroker:VERSION-armv7hf
#cat manifest_armv7hf.yml | sed "s/\$VERSION/${VERSION}/g" > manifest_armv7hf.yaml
#manifest for image: buanet/iobroker:VERSION-aarch64
#cat manifest_aarch64.yml | sed "s/\$VERSION/${VERSION}/g" > manifest_aarch64.yaml
#push to hub #push to hub
mv manifestversion.yaml iobroker.yaml mv manifestversion.yaml iobroker.yaml
./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml ./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml
mv manifestbeta.yaml iobroker.yaml mv manifestbeta.yaml iobroker.yaml
./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml ./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml
#mv manifest_amd64.yaml manifest.yaml
#./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec manifest.yaml
#mv manifest_armv7hf.yaml manifest.yaml
#./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec manifest.yaml
#mv manifest_aarch64.yaml manifest.yaml
#./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec manifest.yaml
fi fi

View File

@@ -5,12 +5,12 @@ IoBroker for Docker is an Dockerimage for ioBroker (http://iobroker.net) smartho
It is originally made for, and tested on a Synology Disk Station 1515+ with DSM 6 and Docker-package installed. But it should also work on other systems with Docker installed! It is originally made for, and tested on a Synology Disk Station 1515+ with DSM 6 and Docker-package installed. But it should also work on other systems with Docker installed!
Version 4 now supports running the Image in Docker on the following architectures: amd64, armv7hf, aarch64. Version 4 (coming soon, at the moment still as 3.1.4beta) now supports running the Image in Docker on the following architectures: amd64, armv7hf, aarch64.
Feel free to ask for more architectures by opening an github-issue. Feel free to ask for more architectures by opening an github-issue.
## Important ## Important
The new v4 comes again with a new major node-version (node10)! The new v4 (coming soon, at the moment still as 3.1.4beta) comes again with a new major node-version (node10)!
If you are updating an existing Installation you have to perform some additional steps inside ioBroker! If you are updating an existing Installation you have to perform some additional steps inside ioBroker!
After upgrading your iobroker-container you have to call "reinstall.sh" for recompiling your installation for the use with node10! After upgrading your iobroker-container you have to call "reinstall.sh" for recompiling your installation for the use with node10!
For Details see official ioBroker-documentation (http://www.iobroker.net/docu/?page_id=8323&lang=de). Make backup first! For Details see official ioBroker-documentation (http://www.iobroker.net/docu/?page_id=8323&lang=de). Make backup first!
@@ -39,6 +39,7 @@ Since v3 is possible to set some environment variables to configure a new contai
|TZ|Europe/Berlin|all valid Linux-timezones| |TZ|Europe/Berlin|all valid Linux-timezones|
|SETUID|1000|for security reasons it might be useful to specify the uid of the containers iobroker user to match an existing user on the docker host| |SETUID|1000|for security reasons it might be useful to specify the uid of the containers iobroker user to match an existing user on the docker host|
|SETGID|1000|for security reasons it might be useful to specify the gid of the containers iobroker user to match an existing group on the docker host| |SETGID|1000|for security reasons it might be useful to specify the gid of the containers iobroker user to match an existing group on the docker host|
|ZWAVE|false|will install openzwave to support zwave-adapter|
### Mounting Folder/ Volume ### Mounting Folder/ Volume
@@ -54,7 +55,8 @@ After some issues with permissions related to the use of a dedicated user for io
## Changelog ## Changelog
### v4.0.0 (2019-10-22) ### v3.1.4beta (2019-10-23)
* added env for zwave support
* v3.1.3beta (2019-10-17) * v3.1.3beta (2019-10-17)
* enhanced logging of startup-script * enhanced logging of startup-script
* multiarch support (amd64, aarch64, armv7hf) * multiarch support (amd64, aarch64, armv7hf)

View File

@@ -4,9 +4,6 @@ MAINTAINER Andre Germann <https://buanet.de>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# Debugging for multiarch
RUN uname -m
# Install prerequisites # Install prerequisites
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
acl \ acl \
@@ -44,6 +41,7 @@ WORKDIR /opt/scripts/
COPY scripts/iobroker_startup.sh iobroker_startup.sh COPY scripts/iobroker_startup.sh iobroker_startup.sh
COPY scripts/setup_avahi.sh setup_avahi.sh COPY scripts/setup_avahi.sh setup_avahi.sh
COPY scripts/setup_packages.sh setup_packages.sh COPY scripts/setup_packages.sh setup_packages.sh
COPY scripts/setup_zwave.sh setup_zwave.sh
RUN chmod +x iobroker_startup.sh \ RUN chmod +x iobroker_startup.sh \
&& chmod +x setup_avahi.sh \ && chmod +x setup_avahi.sh \
&& chmod +x setup_packages.sh && chmod +x setup_packages.sh
@@ -76,7 +74,8 @@ ENV DEBIAN_FRONTEND="teletype" \
PACKAGES="nano" \ PACKAGES="nano" \
AVAHI="false" \ AVAHI="false" \
SETUID=1000 \ SETUID=1000 \
SETGID=1000 SETGID=1000 \
ZWAVE="false"
# Setting up EXPOSE for Admin # Setting up EXPOSE for Admin
EXPOSE 8081/tcp EXPOSE 8081/tcp

View File

@@ -5,6 +5,7 @@ packages=$PACKAGES
avahi=$AVAHI avahi=$AVAHI
uid=$SETUID uid=$SETUID
gid=$SETGID gid=$SETGID
zwave=$ZWAVE
# Getting date and time for logging # Getting date and time for logging
dati=`date '+%Y-%m-%d %H:%M:%S'` dati=`date '+%Y-%m-%d %H:%M:%S'`
@@ -147,7 +148,17 @@ then
echo "Initializing Avahi-Daemon..." echo "Initializing Avahi-Daemon..."
chmod 764 /opt/scripts/setup_avahi.sh chmod 764 /opt/scripts/setup_avahi.sh
sh /opt/scripts/setup_avahi.sh sh /opt/scripts/setup_avahi.sh
echo 'Done.' echo "Done."
echo ' '
fi
if [ "$zwave" = "true" ]
then
echo "ZWave is activated by ENV."
echo "Initializing ZWave-support..."
chmod 764 /opt/scripts/setup_zwave.sh
sh /opt/scripts/setup_avahi.sh
echo "Done."
echo ' ' echo ' '
fi fi

View File

@@ -0,0 +1,19 @@
#!/bin/bash
echo "Checking openzwave installation state..."
if [ -f /usr/local/lib64 ]
then
echo "Openzwave is NOT installed. Going to install it now..."
cd /opt
curl -L -O http://old.openzwave.com/downloads/openzwave-1.6.945.tar.gz
tar -xf openzwave-1.6.945.tar.gz && rm openzwave-1.6.945.tar.gz
cd openzwave-1.6.945 && make 2>&1 /dev/null && make install 2>&1 /dev/null
ldconfig /usr/local/lib64
cd /opt/iobroker
echo "Openzwave is now installed..."
else
echo "Openzwave is already installed..."
fi
exit 0

View File

@@ -4,9 +4,6 @@ MAINTAINER Andre Germann <https://buanet.de>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# Debugging for multiarch
RUN uname -m
# Install prerequisites # Install prerequisites
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
acl \ acl \
@@ -44,6 +41,7 @@ WORKDIR /opt/scripts/
COPY scripts/iobroker_startup.sh iobroker_startup.sh COPY scripts/iobroker_startup.sh iobroker_startup.sh
COPY scripts/setup_avahi.sh setup_avahi.sh COPY scripts/setup_avahi.sh setup_avahi.sh
COPY scripts/setup_packages.sh setup_packages.sh COPY scripts/setup_packages.sh setup_packages.sh
COPY scripts/setup_zwave.sh setup_zwave.sh
RUN chmod +x iobroker_startup.sh \ RUN chmod +x iobroker_startup.sh \
&& chmod +x setup_avahi.sh \ && chmod +x setup_avahi.sh \
&& chmod +x setup_packages.sh && chmod +x setup_packages.sh
@@ -75,7 +73,8 @@ ENV DEBIAN_FRONTEND="teletype" \
PACKAGES="nano" \ PACKAGES="nano" \
AVAHI="false" \ AVAHI="false" \
SETUID=1000 \ SETUID=1000 \
SETGID=1000 SETGID=1000 \
ZWAVE="false"
# Setting up EXPOSE for Admin # Setting up EXPOSE for Admin
EXPOSE 8081/tcp EXPOSE 8081/tcp

View File

@@ -5,6 +5,7 @@ packages=$PACKAGES
avahi=$AVAHI avahi=$AVAHI
uid=$SETUID uid=$SETUID
gid=$SETGID gid=$SETGID
zwave=$ZWAVE
# Getting date and time for logging # Getting date and time for logging
dati=`date '+%Y-%m-%d %H:%M:%S'` dati=`date '+%Y-%m-%d %H:%M:%S'`
@@ -147,7 +148,17 @@ then
echo "Initializing Avahi-Daemon..." echo "Initializing Avahi-Daemon..."
chmod 764 /opt/scripts/setup_avahi.sh chmod 764 /opt/scripts/setup_avahi.sh
sh /opt/scripts/setup_avahi.sh sh /opt/scripts/setup_avahi.sh
echo 'Done.' echo "Done."
echo ' '
fi
if [ "$zwave" = "true" ]
then
echo "ZWave is activated by ENV."
echo "Initializing ZWave-support..."
chmod 764 /opt/scripts/setup_zwave.sh
sh /opt/scripts/setup_avahi.sh
echo "Done."
echo ' ' echo ' '
fi fi

View File

@@ -0,0 +1,19 @@
#!/bin/bash
echo "Checking openzwave installation state..."
if [ -f /usr/local/lib64 ]
then
echo "Openzwave is NOT installed. Going to install it now..."
cd /opt
curl -L -O http://old.openzwave.com/downloads/openzwave-1.6.945.tar.gz
tar -xf openzwave-1.6.945.tar.gz && rm openzwave-1.6.945.tar.gz
cd openzwave-1.6.945 && make 2>&1 /dev/null && make install 2>&1 /dev/null
ldconfig /usr/local/lib64
cd /opt/iobroker
echo "Openzwave is now installed..."
else
echo "Openzwave is already installed..."
fi
exit 0

View File

@@ -4,9 +4,6 @@ MAINTAINER Andre Germann <https://buanet.de>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# Debugging for multiarch
RUN uname -m
# Install prerequisites # Install prerequisites
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
acl \ acl \
@@ -44,6 +41,7 @@ WORKDIR /opt/scripts/
COPY scripts/iobroker_startup.sh iobroker_startup.sh COPY scripts/iobroker_startup.sh iobroker_startup.sh
COPY scripts/setup_avahi.sh setup_avahi.sh COPY scripts/setup_avahi.sh setup_avahi.sh
COPY scripts/setup_packages.sh setup_packages.sh COPY scripts/setup_packages.sh setup_packages.sh
COPY scripts/setup_zwave.sh setup_zwave.sh
RUN chmod +x iobroker_startup.sh \ RUN chmod +x iobroker_startup.sh \
&& chmod +x setup_avahi.sh \ && chmod +x setup_avahi.sh \
&& chmod +x setup_packages.sh && chmod +x setup_packages.sh
@@ -76,7 +74,8 @@ ENV DEBIAN_FRONTEND="teletype" \
PACKAGES="nano" \ PACKAGES="nano" \
AVAHI="false" \ AVAHI="false" \
SETUID=1000 \ SETUID=1000 \
SETGID=1000 SETGID=1000 \
ZWAVE="false"
# Setting up EXPOSE for Admin # Setting up EXPOSE for Admin
EXPOSE 8081/tcp EXPOSE 8081/tcp

View File

@@ -5,6 +5,7 @@ packages=$PACKAGES
avahi=$AVAHI avahi=$AVAHI
uid=$SETUID uid=$SETUID
gid=$SETGID gid=$SETGID
zwave=$ZWAVE
# Getting date and time for logging # Getting date and time for logging
dati=`date '+%Y-%m-%d %H:%M:%S'` dati=`date '+%Y-%m-%d %H:%M:%S'`
@@ -147,7 +148,17 @@ then
echo "Initializing Avahi-Daemon..." echo "Initializing Avahi-Daemon..."
chmod 764 /opt/scripts/setup_avahi.sh chmod 764 /opt/scripts/setup_avahi.sh
sh /opt/scripts/setup_avahi.sh sh /opt/scripts/setup_avahi.sh
echo 'Done.' echo "Done."
echo ' '
fi
if [ "$zwave" = "true" ]
then
echo "ZWave is activated by ENV."
echo "Initializing ZWave-support..."
chmod 764 /opt/scripts/setup_zwave.sh
sh /opt/scripts/setup_avahi.sh
echo "Done."
echo ' ' echo ' '
fi fi

View File

@@ -0,0 +1,19 @@
#!/bin/bash
echo "Checking openzwave installation state..."
if [ -f /usr/local/lib64 ]
then
echo "Openzwave is NOT installed. Going to install it now..."
cd /opt
curl -L -O http://old.openzwave.com/downloads/openzwave-1.6.945.tar.gz
tar -xf openzwave-1.6.945.tar.gz && rm openzwave-1.6.945.tar.gz
cd openzwave-1.6.945 && make 2>&1 /dev/null && make install 2>&1 /dev/null
ldconfig /usr/local/lib64
cd /opt/iobroker
echo "Openzwave is now installed..."
else
echo "Openzwave is already installed..."
fi
exit 0

View File

@@ -1,8 +0,0 @@
image: buanet/iobroker-testing:$VERSION-aarch64
manifests:
-
image: buanet/iobroker-testing:$VERSION-aarch64
platform:
architecture: arm64
variant: v8
os: linux

View File

@@ -1,7 +0,0 @@
image: buanet/iobroker-testing:$VERSION-amd64
manifests:
-
image: buanet/iobroker-testing:$VERSION-amd64
platform:
architecture: amd64
os: linux

View File

@@ -1,8 +0,0 @@
image: buanet/iobroker-testing:$VERSION-armv7hf
manifests:
-
image: buanet/iobroker-testing:$VERSION-armv7hf
platform:
architecture: arm
variant: v7
os: linux