From 2ebeb7d8aeb238772bcb54d1a4965f530797880d Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 16 Apr 2017 20:19:33 +0800 Subject: [PATCH] add Dockerfile.debian for hass --- hass/Dockerfile.debian | 36 ++++++++++++++++++++++++++++++++++++ hass/arm/Dockerfile.debian | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 hass/Dockerfile.debian create mode 100644 hass/arm/Dockerfile.debian diff --git a/hass/Dockerfile.debian b/hass/Dockerfile.debian new file mode 100644 index 0000000..4903ce6 --- /dev/null +++ b/hass/Dockerfile.debian @@ -0,0 +1,36 @@ +# +# Dockerfile for hass (Home Assistant) +# + +FROM debian:jessie +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apt-get update \ + && apt-get install -y build-essential \ + curl \ + libbluetooth3 \ + libbluetooth-dev \ + libboost-python-dev \ + libboost-thread-dev \ + libglib2.0 \ + libglib2.0-dev \ + pkg-config \ + python-dev \ + python3-dev \ + && curl https://bootstrap.pypa.io/get-pip.py | python3 \ + && pip3 install --no-cache-dir gattlib \ + homeassistant \ + pybluez \ + && apt-get remove -y curl \ + libbluetooth-dev \ + libboost-python-dev \ + libboost-thread-dev \ + libglib2.0-dev \ + pkg-config \ + python-dev + +VOLUME /etc/hass +EXPOSE 8123 + +ENTRYPOINT ["hass", "--config", "/etc/hass"] diff --git a/hass/arm/Dockerfile.debian b/hass/arm/Dockerfile.debian new file mode 100644 index 0000000..fefa317 --- /dev/null +++ b/hass/arm/Dockerfile.debian @@ -0,0 +1,36 @@ +# +# Dockerfile for hass-arm (Home Assistant) +# + +FROM resin/rpi-raspbian:jessie +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apt-get update \ + && apt-get install -y build-essential \ + curl \ + libbluetooth3 \ + libbluetooth-dev \ + libboost-python-dev \ + libboost-thread-dev \ + libglib2.0 \ + libglib2.0-dev \ + pkg-config \ + python-dev \ + python3-dev \ + && curl https://bootstrap.pypa.io/get-pip.py | python3 \ + && pip3 install --no-cache-dir gattlib \ + homeassistant \ + pybluez \ + && apt-get remove -y curl \ + libbluetooth-dev \ + libboost-python-dev \ + libboost-thread-dev \ + libglib2.0-dev \ + pkg-config \ + python-dev + +VOLUME /etc/hass +EXPOSE 8123 + +ENTRYPOINT ["hass", "--config", "/etc/hass"]