From 464041886155f4f7e121033eb8d02d6e8b737566 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 23 Nov 2019 08:31:55 +0800 Subject: [PATCH] update hass --- hass/Dockerfile | 27 ++++++++++++++++----------- hass/arm/Dockerfile | 6 ++++-- hass/arm/Dockerfile.debian | 2 +- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/hass/Dockerfile b/hass/Dockerfile index 5ffe224..b4be25c 100644 --- a/hass/Dockerfile +++ b/hass/Dockerfile @@ -2,22 +2,27 @@ # Dockerfile for hass (Home Assistant) # -FROM alpine +FROM alpine:3 MAINTAINER EasyPi Software Foundation +ENV HASS_VERSION=0.102.1 +ENV HASS_CLI_VERSION=3.1.0 +ENV HASS_CLI_ARCH=amd64 + RUN set -xe \ && apk update \ - && apk add --no-cache ca-certificates \ - build-base \ - libffi-dev \ - linux-headers \ - openssl-dev \ - python3 \ - python3-dev \ - && pip3 install --no-cache-dir homeassistant \ - && wget https://github.com/home-assistant/hassio-cli/releases/download/1.3.1/hassio_armhf -O /usr/local/bin/hassio + && apk add --no-cache \ + ca-certificates \ + build-base \ + libffi-dev \ + linux-headers \ + openssl-dev \ + python3 \ + python3-dev \ + && pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \ + && wget https://github.com/home-assistant/hassio-cli/releases/download/${HASS_CLI_VERSION}/hassio_${HASS_CLI_ARCH} -O /usr/local/bin/hassio \ + && chmod +x /usr/local/bin/hassio VOLUME /etc/hass EXPOSE 8123 - ENTRYPOINT ["hass", "--config", "/etc/hass"] diff --git a/hass/arm/Dockerfile b/hass/arm/Dockerfile index 6d7c093..c01f107 100644 --- a/hass/arm/Dockerfile +++ b/hass/arm/Dockerfile @@ -5,8 +5,9 @@ FROM arm32v7/alpine:3 MAINTAINER EasyPi Software Foundation -ENV HASS_VERSION=0.100.2 +ENV HASS_VERSION=0.102.1 ENV HASS_CLI_VERSION=3.1.0 +ENV HASS_CLI_ARCH=armhf RUN set -xe \ && apk update \ @@ -19,7 +20,8 @@ RUN set -xe \ python3 \ python3-dev \ && pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \ - && wget https://github.com/home-assistant/hassio-cli/releases/download/${HASS_CLI_VERSION}/hassio_armhf -O /usr/local/bin/hassio + && wget https://github.com/home-assistant/hassio-cli/releases/download/${HASS_CLI_VERSION}/hassio_${HASS_CLI_ARCH} -O /usr/local/bin/hassio \ + && chmod +x /usr/local/bin/hassio VOLUME /etc/hass EXPOSE 8123 diff --git a/hass/arm/Dockerfile.debian b/hass/arm/Dockerfile.debian index b7e3a35..b4ffd27 100644 --- a/hass/arm/Dockerfile.debian +++ b/hass/arm/Dockerfile.debian @@ -5,7 +5,7 @@ FROM balenalib/rpi-raspbian:buster MAINTAINER EasyPi Software Foundation -ENV HASS_VERSION=0.100.2 +ENV HASS_VERSION=0.102.1 ENV HASS_CLI_VERSION=3.1.0 RUN set -xe \