Public Repository

Last pushed: a year ago
Short Description
See http://forum.micasaverde.com/index.php/topic,36131.msg285935.html#msg285935 for use.
Full Description

See http://forum.micasaverde.com/index.php/topic,36131.msg285935.html#msg285935 for use.
Based on the following Dockerfile:

#########################################

DOCKERFILE POUR HOMEBRIDGE VERA

DOCKERFILE FOR HOMEBRIDGE VERA

#########################################

FROM debian:jessie

MAINTAINER FastFreddi

USER root

VARIABLES D'ENVIRONNEMENT

ENVIRONMENT VARIABLES

ENV DEBIAN_FRONTEND noninteractive

DEPOTS, MISES A JOUR & INSTALLATION DE LIBAVAHI

DEPOSITS, UPDATE and INSTALL OF LIBAVAHI

RUN \

apt-get update && \

apt-get install -y apt-utils nano && \
sed -i "s/exit 101/exit 0/" /usr/sbin/policy-rc.d && \

apt-get install -y \
curl \
wget \
git \
apt-transport-https \
python \
build-essential \
make \
g++ \
libavahi-compat-libdnssd-dev \
libkrb5-dev \
vim \
net-tools

INSTALLATION DE NODE.JS

NODE.JS INSTALLATION

RUN \

curl -sLf -o /dev/null 'https://deb.nodesource.com/node_0.12/dists/vivid/Release' && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo 'deb https://deb.nodesource.com/node_0.12 vivid main' > /etc/apt/sources.list.d/nodesource.list && \
echo 'deb-src https://deb.nodesource.com/node_0.12 vivid main' >> /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs

INSTALLATION DE HOMEBRIDGE

HOMEBRIDGE INSTALLATION

#(LE PLUGIN VERA NECESSITE HOMEBRIDGE)

#(VERA PLUGIN NEEDS HOMEBRIDGE)
RUN \
export USER=root && su root && npm install -g --unsafe-perm homebridge && \
npm install -g --unsafe-perm homebridge-vera

FINALISATION

FINALIZATION

USER root

(CORRECTION DU PROBLEME DBUS ET AVAHI)

(DBUS AND AVAHI PROBLEM FIX)

RUN rm -r /var/run && rm -r /var/lock && ln -s /run /var/run && ln -s /run/lock /var/lock && rm /run/dbus/* && sed -i s/rlimit-nproc=3/#rlimit-nproc=3/ /etc/avahi/avahi-daemon.conf && sed -i s/AVAHI_DAEMON_DETECT_LOCAL=1/AVAHI_DAEMON_DETECT_LOCAL=0/ /etc/default/avahi-daemon

(MORE STUFF)

(PLUS DE CHOSES)

RUN mkdir /root/.homebridge && printf '%s\n' '#!/bin/bash' '# LANCEMENT DES SERVICES DBUS, AVAHI, HOMEBRIDGE' '# RUNNING DBUS, AVAHI AND HOMEBRIDGE SERVICES' 'dbus-daemon --system' '/etc/init.d/dbus restart' 'service avahi-daemon start' 'homebridge' >/root/.homebridge/run.sh && chmod 755 /root/.homebridge/run.sh

RUN printf '%s\n' '{' ' "bridge": {' ' "name": "Homebridge",' ' "pin": "987-65-432",' ' "username": "CC:22:3D:E3:CE:30"' ' },' ' "platforms": [' ' {' ' "platform": "Vera",' ' "name": "Vera",' ' "veraIP": "10.0.1.5",' ' "includesensor": false,' ' "ignorerooms": [20,21,22],' ' "securitypoll": 2000,' ' "dimmertest": false' ' }' ' ]' '}' >/root/.homebridge/config.json
EXPOSE 51826
CMD ["/root/.homebridge/run.sh"]

Docker Pull Command
Owner
fastfreddi