1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update hass

This commit is contained in:
kev 2021-11-08 17:25:37 +08:00
parent d3faaf2058
commit 1eedd0031a
6 changed files with 41 additions and 47 deletions

View File

@ -5,9 +5,10 @@
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
ENV HASS_VERSION=2021.11.1
ENV HASS_CLI_VERSION=4.14.0
ARG HASS_CLI_ARCH=amd64
RUN set -xe \
&& apk update \
@ -19,9 +20,10 @@ RUN set -xe \
openssl-dev \
python3 \
python3-dev \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& 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
&& wget https://github.com/home-assistant/cli/releases/download/${HASS_CLI_VERSION}/ha_${HASS_CLI_ARCH} -O /usr/local/bin/ha \
&& chmod +x /usr/local/bin/ha
VOLUME /etc/hass
EXPOSE 8123

View File

@ -2,7 +2,7 @@
# Dockerfile for hass (Home Assistant)
#
FROM debian:jessie
FROM debian:bullseye
MAINTAINER EasyPi Software Foundation
RUN set -xe \
@ -23,7 +23,7 @@ RUN set -xe \
&& pip3 install --no-cache-dir gattlib \
homeassistant \
pybluez \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.4 \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.9 \
&& apt-get remove -y curl \
libbluetooth-dev \
libboost-python-dev \

View File

@ -2,12 +2,13 @@
# Dockerfile for hass-arm (Home Assistant)
#
FROM arm32v7/alpine:3
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.102.1
ENV HASS_CLI_VERSION=3.1.0
ENV HASS_CLI_ARCH=armhf
ENV HASS_VERSION=2021.11.1
ENV HASS_CLI_VERSION=4.14.0
ARG HASS_CLI_ARCH=armhf
RUN set -xe \
&& apk update \
@ -19,9 +20,10 @@ RUN set -xe \
openssl-dev \
python3 \
python3-dev \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& 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
&& wget https://github.com/home-assistant/cli/releases/download/${HASS_CLI_VERSION}/ha_${HASS_CLI_ARCH} -O /usr/local/bin/ha \
&& chmod +x /usr/local/bin/ha
VOLUME /etc/hass
EXPOSE 8123

View File

@ -2,11 +2,13 @@
# Dockerfile for hass-arm (Home Assistant)
#
FROM balenalib/rpi-raspbian:buster
FROM debian:bullseye
MAINTAINER EasyPi Software Foundation
ENV HASS_VERSION=0.102.1
ENV HASS_CLI_VERSION=3.1.0
ENV HASS_VERSION=2021.11.1
ENV HASS_CLI_VERSION=4.14.0
ARG HASS_CLI_ARCH=armhf
RUN set -xe \
&& apt-get update \
@ -28,7 +30,7 @@ RUN set -xe \
gattlib \
homeassistant \
pybluez \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.7 \
&& setcap 'cap_net_raw,cap_net_admin+eip' /usr/bin/python3.9 \
&& apt-get remove -y \
curl \
libbluetooth-dev \

View File

@ -1,15 +1,9 @@
hass:
version: "3.8"
services:
hass:
image: easypi/hass-arm
volumes:
- ./data:/etc/hass
net: host
privileged: yes
restart: unless-stopped
hcfg:
image: easypi/hcfg-arm
volumes:
- ./data:/etc/hass
net: host
working_dir: /etc/hass
restart: unless-stopped

View File

@ -1,15 +1,9 @@
hass:
version: "3.8"
services:
hass:
image: vimagick/hass:debian
volumes:
- ./data:/etc/hass
net: host
privileged: yes
restart: unless-stopped
hcfg:
image: vimagick/hcfg
volumes:
- ./data:/etc/hass
net: host
working_dir: /etc/hass
restart: unless-stopped