浏览代码

Sonos Dockerfile erstellt

Sonos Dockerfile laut Loredo vom 16.Sep 2018
https://forum.fhem.de/index.php/topic,89745.msg836848.html#msg836848
hmetzner 6 年之前
父节点
当前提交
b34a25c12d
共有 1 个文件被更改,包括 12 次插入80 次删除
  1. 12 80
      sonos/Dockerfile

+ 12 - 80
sonos/Dockerfile

@@ -1,19 +1,18 @@
 FROM debian:stretch
-
-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 \
+# Install base environment
+RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends apt-utils
+RUN apt-get -y install \
 apt-transport-https \
 build-essential \
+curl \
+cpanminus \
 dfu-programmer \
 etherwake \
 git \
+netcat \
 perl \
 snmp \
 snmpd \
@@ -22,81 +21,14 @@ sudo \
 telnet \
 usbutils \
 vim \
-wget
-
-# Install perl packages
-RUN apt-get -y --force-yes --fix-missing install \
-libalgorithm-merge-perl \
-libauthen-oath-perl \
-libavahi-compat-libdnssd-dev \
-libcgi-pm-perl \
-libclass-dbi-mysql-perl \
-libclass-isa-perl \
-libcrypt-cbc-perl \
-libcrypt-ecb-perl \
-libcrypt-urandom-perl \
-libcgi-pm-perl \
-libcommon-sense-perl \
-libconvert-base32-perl \
-libcrypt-urandom-perl \
-libdata-dump-perl \
-libdatetime-format-strptime-perl \
-libdbd-sqlite3-perl \
-libdbi-perl \
-libdevice-serialport-perl \
-libdigest-md5-perl \
-libdpkg-perl \
-liberror-perl \
-libfile-copy-recursive-perl \
-libfile-fcntllock-perl \
-libgd-graph-perl \
-libgd-text-perl \
-libimage-info-perl \
-libimage-librsvg-perl \
-libio-socket-inet6-perl \
-libio-socket-ip-perl \
-libio-socket-multicast-perl \
-libio-socket-ssl-perl \
-libimage-info-perl \
-libimage-librsvg-perl \
-libjson-perl \
-libjson-xs-perl \
-liblist-moreutils-perl \
-libmail-imapclient-perl \
-libmail-sendmail-perl \
-libmime-base64-perl \
-libnet-telnet-perl \
-libsoap-lite-perl \
-libsocket-perl \
-libsocket6-perl \
-libswitch-perl \
-libsys-hostname-long-perl \
-libterm-readkey-perl \
-libterm-readline-perl-perl \
-libtext-csv-perl \
-libtext-diff-perl \
-libtimedate-perl \
+wget && \
+apt-get -y install \
 libwww-perl \
-libxml-simple-perl \
-libhtml-tableextract-perl \
+libsoap-lite-perl \
 libxml-parser-lite-perl
 
-RUN cpan Crypt::Rijndael_PP
-RUN cpan Net::MQTT::Simple
-RUN cpan Net::MQTT::Constants
-
-# Install fhem
-# Set timezone to Europe/Berlin
-ENV TZ=Europe/Berlin
-RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
-
-RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
-RUN userdel fhem
-
-WORKDIR "/opt/fhem"
-
-COPY core/start.sh ./
+EXPOSE 4711
 
-EXPOSE 8083 7072
+WORKDIR "/opt/fhem/FHEM"
 
-CMD bash /opt/fhem/start.sh
+CMD perl 00_SONOS.pm 4711 3 1