From 631f4959cd9dbbffa1ae776d757e93c72316ceb6 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 16 Apr 2017 12:08:10 +0800 Subject: [PATCH] add hbdg --- README.md | 2 ++ hbdg/Dockerfile | 31 +++++++++++++++++++++++++++++++ hbdg/README.md | 10 ++++++++++ hbdg/arm/Dockerfile | 31 +++++++++++++++++++++++++++++++ hbdg/arm/data/config.json | 31 +++++++++++++++++++++++++++++++ hbdg/arm/docker-compose.yml | 7 +++++++ hbdg/data/config.json | 31 +++++++++++++++++++++++++++++++ hbdg/docker-compose.yml | 7 +++++++ 8 files changed, 150 insertions(+) create mode 100644 hbdg/Dockerfile create mode 100644 hbdg/README.md create mode 100644 hbdg/arm/Dockerfile create mode 100644 hbdg/arm/data/config.json create mode 100644 hbdg/arm/docker-compose.yml create mode 100644 hbdg/data/config.json create mode 100644 hbdg/docker-compose.yml diff --git a/README.md b/README.md index bfe871b..931962b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,8 @@ A collection of delicious docker recipes. - [x] docker-compose-arm - [x] hass - [x] hass-arm +- [x] hbdg +- [x] hbdg-arm - [x] node-red :+1: - [x] node-red-arm :+1: diff --git a/hbdg/Dockerfile b/hbdg/Dockerfile new file mode 100644 index 0000000..9cadf39 --- /dev/null +++ b/hbdg/Dockerfile @@ -0,0 +1,31 @@ +# +# Dockerfile for hbdg (Home Bridge) +# + +FROM alpine +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apk update \ + && apk add avahi \ + avahi-compat-libdns_sd \ + avahi-dev \ + build-base \ + dbus \ + nodejs \ + python \ + && npm install -g homebridge \ + homebridge-homeassistant \ + && apk del avahi-dev \ + build-base \ + python \ + && rm -rf /var/cache/apk/* + +VOLUME /root/.homebridge + +CMD set -xe \ + && rm -f /var/run/dbus.pid \ + && dbus-daemon --system \ + && rm -f /var/run/avahi-daemon/pid \ + && avahi-daemon -D \ + && homebridge diff --git a/hbdg/README.md b/hbdg/README.md new file mode 100644 index 0000000..26d49a9 --- /dev/null +++ b/hbdg/README.md @@ -0,0 +1,10 @@ +hbdg +==== + +Homebridge plugin for Home Assistant. + +Control your accessories from Home Assistant with Siri and HomeKit. Set it up +and poof, all of your supported accessories will be instantly controllable via +Siri. + +[1]: https://github.com/home-assistant/homebridge-homeassistant diff --git a/hbdg/arm/Dockerfile b/hbdg/arm/Dockerfile new file mode 100644 index 0000000..2c6b19d --- /dev/null +++ b/hbdg/arm/Dockerfile @@ -0,0 +1,31 @@ +# +# Dockerfile for hbdg-arm (Home Bridge) +# + +FROM easypi/alpine-arm +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apk update \ + && apk add avahi \ + avahi-compat-libdns_sd \ + avahi-dev \ + build-base \ + dbus \ + nodejs \ + python \ + && npm install -g homebridge \ + homebridge-homeassistant \ + && apk del avahi-dev \ + build-base \ + python \ + && rm -rf /var/cache/apk/* + +VOLUME /root/.homebridge + +CMD set -xe \ + && rm -f /var/run/dbus.pid \ + && dbus-daemon --system \ + && rm -f /var/run/avahi-daemon/pid \ + && avahi-daemon -D \ + && homebridge diff --git a/hbdg/arm/data/config.json b/hbdg/arm/data/config.json new file mode 100644 index 0000000..8c22865 --- /dev/null +++ b/hbdg/arm/data/config.json @@ -0,0 +1,31 @@ +{ + "bridge": { + "name": "HomeBridge", + "username": "CC:22:3D:E3:CE:30", + "port": 51826, + "pin": "031-45-154" + }, + "platforms": [ + { + "platform": "HomeAssistant", + "name": "HomeAssistant", + "host": "http://127.0.0.1:8123", + "password": "yourapipassword", + "supported_types": [ + "binary_sensor", + "climate", + "cover", + "device_tracker", + "fan", + "input_boolean", + "light", + "lock", + "media_player", + "scene", + "sensor", + "switch" + ], + "logging": true + } + ] +} diff --git a/hbdg/arm/docker-compose.yml b/hbdg/arm/docker-compose.yml new file mode 100644 index 0000000..eabf20e --- /dev/null +++ b/hbdg/arm/docker-compose.yml @@ -0,0 +1,7 @@ +hbdg: + image: easypi/hbdg-arm + volumes: + - ./data:/root/.homebridge + net: host + privileged: yes + restart: always diff --git a/hbdg/data/config.json b/hbdg/data/config.json new file mode 100644 index 0000000..8c22865 --- /dev/null +++ b/hbdg/data/config.json @@ -0,0 +1,31 @@ +{ + "bridge": { + "name": "HomeBridge", + "username": "CC:22:3D:E3:CE:30", + "port": 51826, + "pin": "031-45-154" + }, + "platforms": [ + { + "platform": "HomeAssistant", + "name": "HomeAssistant", + "host": "http://127.0.0.1:8123", + "password": "yourapipassword", + "supported_types": [ + "binary_sensor", + "climate", + "cover", + "device_tracker", + "fan", + "input_boolean", + "light", + "lock", + "media_player", + "scene", + "sensor", + "switch" + ], + "logging": true + } + ] +} diff --git a/hbdg/docker-compose.yml b/hbdg/docker-compose.yml new file mode 100644 index 0000000..7bdce0e --- /dev/null +++ b/hbdg/docker-compose.yml @@ -0,0 +1,7 @@ +hbdg: + image: vimagick/hbdg + volumes: + - ./data:/root/.homebridge + net: host + privileged: yes + restart: always