mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 18:39:01 +02:00
added zwave support
This commit is contained in:
36
.travis.yml
36
.travis.yml
@@ -78,30 +78,12 @@ after_success:
|
||||
#manifest for image: buanet/iobroker:latest
|
||||
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
|
||||
mv manifestversion.yaml iobroker.yaml
|
||||
./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml
|
||||
|
||||
mv manifestlatest.yaml 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
|
||||
|
||||
if [ "$TRAVIS_BRANCH" == "beta" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$JOB_NAME" == "Manifest" ]; then
|
||||
@@ -114,28 +96,10 @@ after_success:
|
||||
#manifest for image: buanet/iobroker:beta
|
||||
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
|
||||
mv manifestversion.yaml iobroker.yaml
|
||||
./manifest-tool --username $HUB_USER --password $HUB_PASS push from-spec iobroker.yaml
|
||||
|
||||
mv manifestbeta.yaml 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
|
||||
|
||||
@@ -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!
|
||||
|
||||
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.
|
||||
|
||||
## 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!
|
||||
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!
|
||||
@@ -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|
|
||||
|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|
|
||||
|ZWAVE|false|will install openzwave to support zwave-adapter|
|
||||
|
||||
### Mounting Folder/ Volume
|
||||
|
||||
@@ -54,7 +55,8 @@ After some issues with permissions related to the use of a dedicated user for io
|
||||
|
||||
## Changelog
|
||||
|
||||
### v4.0.0 (2019-10-22)
|
||||
### v3.1.4beta (2019-10-23)
|
||||
* added env for zwave support
|
||||
* v3.1.3beta (2019-10-17)
|
||||
* enhanced logging of startup-script
|
||||
* multiarch support (amd64, aarch64, armv7hf)
|
||||
|
||||
@@ -4,9 +4,6 @@ MAINTAINER Andre Germann <https://buanet.de>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Debugging for multiarch
|
||||
RUN uname -m
|
||||
|
||||
# Install prerequisites
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
acl \
|
||||
@@ -44,6 +41,7 @@ WORKDIR /opt/scripts/
|
||||
COPY scripts/iobroker_startup.sh iobroker_startup.sh
|
||||
COPY scripts/setup_avahi.sh setup_avahi.sh
|
||||
COPY scripts/setup_packages.sh setup_packages.sh
|
||||
COPY scripts/setup_zwave.sh setup_zwave.sh
|
||||
RUN chmod +x iobroker_startup.sh \
|
||||
&& chmod +x setup_avahi.sh \
|
||||
&& chmod +x setup_packages.sh
|
||||
@@ -76,7 +74,8 @@ ENV DEBIAN_FRONTEND="teletype" \
|
||||
PACKAGES="nano" \
|
||||
AVAHI="false" \
|
||||
SETUID=1000 \
|
||||
SETGID=1000
|
||||
SETGID=1000 \
|
||||
ZWAVE="false"
|
||||
|
||||
# Setting up EXPOSE for Admin
|
||||
EXPOSE 8081/tcp
|
||||
|
||||
@@ -5,6 +5,7 @@ packages=$PACKAGES
|
||||
avahi=$AVAHI
|
||||
uid=$SETUID
|
||||
gid=$SETGID
|
||||
zwave=$ZWAVE
|
||||
|
||||
# Getting date and time for logging
|
||||
dati=`date '+%Y-%m-%d %H:%M:%S'`
|
||||
@@ -147,7 +148,17 @@ then
|
||||
echo "Initializing Avahi-Daemon..."
|
||||
chmod 764 /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 ' '
|
||||
fi
|
||||
|
||||
|
||||
19
aarch64/scripts/setup_zwave.sh
Normal file
19
aarch64/scripts/setup_zwave.sh
Normal 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
|
||||
@@ -4,9 +4,6 @@ MAINTAINER Andre Germann <https://buanet.de>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Debugging for multiarch
|
||||
RUN uname -m
|
||||
|
||||
# Install prerequisites
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
acl \
|
||||
@@ -44,6 +41,7 @@ WORKDIR /opt/scripts/
|
||||
COPY scripts/iobroker_startup.sh iobroker_startup.sh
|
||||
COPY scripts/setup_avahi.sh setup_avahi.sh
|
||||
COPY scripts/setup_packages.sh setup_packages.sh
|
||||
COPY scripts/setup_zwave.sh setup_zwave.sh
|
||||
RUN chmod +x iobroker_startup.sh \
|
||||
&& chmod +x setup_avahi.sh \
|
||||
&& chmod +x setup_packages.sh
|
||||
@@ -75,7 +73,8 @@ ENV DEBIAN_FRONTEND="teletype" \
|
||||
PACKAGES="nano" \
|
||||
AVAHI="false" \
|
||||
SETUID=1000 \
|
||||
SETGID=1000
|
||||
SETGID=1000 \
|
||||
ZWAVE="false"
|
||||
|
||||
# Setting up EXPOSE for Admin
|
||||
EXPOSE 8081/tcp
|
||||
|
||||
@@ -5,6 +5,7 @@ packages=$PACKAGES
|
||||
avahi=$AVAHI
|
||||
uid=$SETUID
|
||||
gid=$SETGID
|
||||
zwave=$ZWAVE
|
||||
|
||||
# Getting date and time for logging
|
||||
dati=`date '+%Y-%m-%d %H:%M:%S'`
|
||||
@@ -147,7 +148,17 @@ then
|
||||
echo "Initializing Avahi-Daemon..."
|
||||
chmod 764 /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 ' '
|
||||
fi
|
||||
|
||||
|
||||
19
amd64/scripts/setup_zwave.sh
Normal file
19
amd64/scripts/setup_zwave.sh
Normal 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
|
||||
@@ -4,9 +4,6 @@ MAINTAINER Andre Germann <https://buanet.de>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Debugging for multiarch
|
||||
RUN uname -m
|
||||
|
||||
# Install prerequisites
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
acl \
|
||||
@@ -44,6 +41,7 @@ WORKDIR /opt/scripts/
|
||||
COPY scripts/iobroker_startup.sh iobroker_startup.sh
|
||||
COPY scripts/setup_avahi.sh setup_avahi.sh
|
||||
COPY scripts/setup_packages.sh setup_packages.sh
|
||||
COPY scripts/setup_zwave.sh setup_zwave.sh
|
||||
RUN chmod +x iobroker_startup.sh \
|
||||
&& chmod +x setup_avahi.sh \
|
||||
&& chmod +x setup_packages.sh
|
||||
@@ -76,7 +74,8 @@ ENV DEBIAN_FRONTEND="teletype" \
|
||||
PACKAGES="nano" \
|
||||
AVAHI="false" \
|
||||
SETUID=1000 \
|
||||
SETGID=1000
|
||||
SETGID=1000 \
|
||||
ZWAVE="false"
|
||||
|
||||
# Setting up EXPOSE for Admin
|
||||
EXPOSE 8081/tcp
|
||||
|
||||
@@ -5,6 +5,7 @@ packages=$PACKAGES
|
||||
avahi=$AVAHI
|
||||
uid=$SETUID
|
||||
gid=$SETGID
|
||||
zwave=$ZWAVE
|
||||
|
||||
# Getting date and time for logging
|
||||
dati=`date '+%Y-%m-%d %H:%M:%S'`
|
||||
@@ -147,7 +148,17 @@ then
|
||||
echo "Initializing Avahi-Daemon..."
|
||||
chmod 764 /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 ' '
|
||||
fi
|
||||
|
||||
|
||||
19
armv7hf/scripts/setup_zwave.sh
Normal file
19
armv7hf/scripts/setup_zwave.sh
Normal 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
|
||||
@@ -1,8 +0,0 @@
|
||||
image: buanet/iobroker-testing:$VERSION-aarch64
|
||||
manifests:
|
||||
-
|
||||
image: buanet/iobroker-testing:$VERSION-aarch64
|
||||
platform:
|
||||
architecture: arm64
|
||||
variant: v8
|
||||
os: linux
|
||||
@@ -1,7 +0,0 @@
|
||||
image: buanet/iobroker-testing:$VERSION-amd64
|
||||
manifests:
|
||||
-
|
||||
image: buanet/iobroker-testing:$VERSION-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
@@ -1,8 +0,0 @@
|
||||
image: buanet/iobroker-testing:$VERSION-armv7hf
|
||||
manifests:
|
||||
-
|
||||
image: buanet/iobroker-testing:$VERSION-armv7hf
|
||||
platform:
|
||||
architecture: arm
|
||||
variant: v7
|
||||
os: linux
|
||||
Reference in New Issue
Block a user