Matthias Kleine 9 gadi atpakaļ
revīzija
6fe5af6424
7 mainītis faili ar 85 papildinājumiem un 0 dzēšanām
  1. 2 0
      .gitignore
  2. 18 0
      docker-compose.yml
  3. 41 0
      fhem/Dockerfile
  4. 0 0
      fhem/log/.gitkeep
  5. 4 0
      homebridge/Dockerfile
  6. 20 0
      homebridge/config.json
  7. 0 0
      homebridge/start.sh

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+.DS_Store
+.idea

+ 18 - 0
docker-compose.yml

@@ -0,0 +1,18 @@
+version: '2'
+
+services:
+    fhem:
+        expose:
+            - "8083"
+        ports:
+            - "8083:8083"
+        build: fhem
+#        volumes:
+#            - ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
+#            - ./es_data:/usr/share/elasticsearch/data
+        networks:
+            - code-network
+
+networks:
+    code-network:
+        driver: bridge

+ 41 - 0
fhem/Dockerfile

@@ -0,0 +1,41 @@
+FROM debian:jessie
+
+MAINTAINER Matthias Kleine <info@haus-automatisierung.com>
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV TERM xterm
+
+# Install dependencies
+RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
+RUN apt-get -y --force-yes install perl wget git nano make gcc g++ apt-transport-https libavahi-compat-libdnssd-dev sudo nodejs etherwake
+
+# Install perl packages
+RUN apt-get -y --force-yes install libalgorithm-merge-perl \
+libclass-isa-perl \
+libcommon-sense-perl \
+libdevice-serialport-perl \
+libdpkg-perl \
+liberror-perl \
+libfile-copy-recursive-perl \
+libfile-fcntllock-perl \
+libio-socket-ip-perl \
+libio-socket-ssl-perl \
+libjson-perl \
+libjson-xs-perl \
+libmail-sendmail-perl \
+libsocket-perl \
+libswitch-perl \
+libsys-hostname-long-perl \
+libterm-readkey-perl \
+libterm-readline-perl-perl \
+libwww-perl \
+libxml-simple-perl
+
+# Install fhem
+RUN wget -qO - https://debian.fhem.de/archive.key | apt-key add -
+RUN echo "deb https://debian.fhem.de/stable ./" | tee -a /etc/apt/sources.list.d/fhem.list
+RUN apt-get update
+RUN apt-get -y --force-yes install supervisor fhem telnet
+RUN mkdir -p /var/log/supervisor
+
+RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata

+ 0 - 0
fhem/log/.gitkeep


+ 4 - 0
homebridge/Dockerfile

@@ -0,0 +1,4 @@
+FROM debian:jessie
+
+MAINTAINER dominikauer <dobsiin@gmail.com>
+

+ 20 - 0
homebridge/config.json

@@ -0,0 +1,20 @@
+{
+    "bridge": {
+        "name": "Homebridge FHEM",
+        "username": "CC:22:3D:E3:CE:29",
+        "port": 51826,
+        "pin": "012-34-567"
+    },
+
+    "platforms": [
+        {
+            "platform": "FHEM",
+            "name": "FHEM",
+            "server": "fhem",
+            "port": "8083",
+            "filter": "room=Homekit"
+        }
+     ],
+
+    "accessories": []
+}

+ 0 - 0
homebridge/start.sh