Przeglądaj źródła

Ich habe den Download-Pfad angepasst und die Versionsnummer als ENV Variable hinzugefügt. Behebt Issue #1.

Christian Lehmann 8 lat temu
rodzic
commit
fc4b32d9a0
2 zmienionych plików z 22 dodań i 8 usunięć
  1. 2 2
      .gitignore
  2. 20 6
      fhem/Dockerfile

+ 2 - 2
.gitignore

@@ -1,6 +1,6 @@
 .DS_Store
 .idea
 !.gitkeep
-/fhem/fhem.cfg
+/fhem/data/fhem.cfg
 /fhem/log/*
-/mysql/data/*
+/mysql/data/*

+ 20 - 6
fhem/Dockerfile

@@ -2,12 +2,26 @@ FROM debian:jessie
 
 MAINTAINER Matthias Kleine <info@haus-automatisierung.com>
 
+ENV FHEM_VERSION 5.8
 ENV DEBIAN_FRONTEND noninteractive
 ENV TERM xterm
 
 # Install dependencies
 RUN apt-get update && apt-get upgrade -y --force-yes && apt-get install -y --force-yes --no-install-recommends apt-utils
-RUN apt-get -y --force-yes install perl wget git apt-transport-https sudo etherwake dfu-programmer build-essential snmpd snmp vim telnet usbutils
+RUN apt-get -y --force-yes install \
+perl \
+wget \
+git \
+apt-transport-https \
+sudo etherwake \
+dfu-programmer \
+build-essential \
+snmpd \
+snmp \
+vim \
+telnet \
+usbutils \
+sqlite3
 
 # Install perl packages
 RUN apt-get -y --force-yes install \
@@ -34,14 +48,14 @@ libsys-hostname-long-perl \
 libterm-readkey-perl \
 libterm-readline-perl-perl \
 libwww-perl \
-libxml-simple-perl
+libxml-simple-perl \
+libdbd-sqlite3-perl \
+libtext-diff-perl
 
 # Install fhem
-
-
 RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
 
-RUN wget https://debian.fhem.de/fhem.deb && dpkg -i fhem.deb
+RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
 RUN cd /opt/fhem/www/ && git clone https://github.com/klein0r/fhem-style-haus-automatisierung.git hausautomatisierung-com && chown -R fhem:dialout /opt/fhem/www/hausautomatisierung-com
 RUN userdel fhem
 
@@ -52,4 +66,4 @@ COPY start.sh ./
 
 EXPOSE 8083 7072
 
-CMD bash /opt/fhem/start.sh
+CMD bash /opt/fhem/start.sh