mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update hass
This commit is contained in:
parent
d3faaf2058
commit
1eedd0031a
@ -5,9 +5,10 @@
|
|||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV HASS_VERSION=0.102.1
|
ENV HASS_VERSION=2021.11.1
|
||||||
ENV HASS_CLI_VERSION=3.1.0
|
ENV HASS_CLI_VERSION=4.14.0
|
||||||
ENV HASS_CLI_ARCH=amd64
|
|
||||||
|
ARG HASS_CLI_ARCH=amd64
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk update \
|
&& apk update \
|
||||||
@ -19,9 +20,10 @@ RUN set -xe \
|
|||||||
openssl-dev \
|
openssl-dev \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
|
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
|
||||||
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
|
&& 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 \
|
&& 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/hassio
|
&& chmod +x /usr/local/bin/ha
|
||||||
|
|
||||||
VOLUME /etc/hass
|
VOLUME /etc/hass
|
||||||
EXPOSE 8123
|
EXPOSE 8123
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Dockerfile for hass (Home Assistant)
|
# Dockerfile for hass (Home Assistant)
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM debian:jessie
|
FROM debian:bullseye
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
@ -23,7 +23,7 @@ RUN set -xe \
|
|||||||
&& pip3 install --no-cache-dir gattlib \
|
&& pip3 install --no-cache-dir gattlib \
|
||||||
homeassistant \
|
homeassistant \
|
||||||
pybluez \
|
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 \
|
&& apt-get remove -y curl \
|
||||||
libbluetooth-dev \
|
libbluetooth-dev \
|
||||||
libboost-python-dev \
|
libboost-python-dev \
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
# Dockerfile for hass-arm (Home Assistant)
|
# Dockerfile for hass-arm (Home Assistant)
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM arm32v7/alpine:3
|
FROM alpine:3
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV HASS_VERSION=0.102.1
|
ENV HASS_VERSION=2021.11.1
|
||||||
ENV HASS_CLI_VERSION=3.1.0
|
ENV HASS_CLI_VERSION=4.14.0
|
||||||
ENV HASS_CLI_ARCH=armhf
|
|
||||||
|
ARG HASS_CLI_ARCH=armhf
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk update \
|
&& apk update \
|
||||||
@ -19,9 +20,10 @@ RUN set -xe \
|
|||||||
openssl-dev \
|
openssl-dev \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
|
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
|
||||||
&& pip3 install --no-cache-dir homeassistant==${HASS_VERSION} \
|
&& 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 \
|
&& 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/hassio
|
&& chmod +x /usr/local/bin/ha
|
||||||
|
|
||||||
VOLUME /etc/hass
|
VOLUME /etc/hass
|
||||||
EXPOSE 8123
|
EXPOSE 8123
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
# Dockerfile for hass-arm (Home Assistant)
|
# Dockerfile for hass-arm (Home Assistant)
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM balenalib/rpi-raspbian:buster
|
FROM debian:bullseye
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV HASS_VERSION=0.102.1
|
ENV HASS_VERSION=2021.11.1
|
||||||
ENV HASS_CLI_VERSION=3.1.0
|
ENV HASS_CLI_VERSION=4.14.0
|
||||||
|
|
||||||
|
ARG HASS_CLI_ARCH=armhf
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
@ -28,7 +30,7 @@ RUN set -xe \
|
|||||||
gattlib \
|
gattlib \
|
||||||
homeassistant \
|
homeassistant \
|
||||||
pybluez \
|
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 \
|
&& apt-get remove -y \
|
||||||
curl \
|
curl \
|
||||||
libbluetooth-dev \
|
libbluetooth-dev \
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
hass:
|
version: "3.8"
|
||||||
image: easypi/hass-arm
|
services:
|
||||||
volumes:
|
hass:
|
||||||
- ./data:/etc/hass
|
image: easypi/hass-arm
|
||||||
net: host
|
volumes:
|
||||||
privileged: yes
|
- ./data:/etc/hass
|
||||||
restart: unless-stopped
|
net: host
|
||||||
|
privileged: yes
|
||||||
hcfg:
|
restart: unless-stopped
|
||||||
image: easypi/hcfg-arm
|
|
||||||
volumes:
|
|
||||||
- ./data:/etc/hass
|
|
||||||
net: host
|
|
||||||
working_dir: /etc/hass
|
|
||||||
restart: unless-stopped
|
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
hass:
|
version: "3.8"
|
||||||
image: vimagick/hass:debian
|
services:
|
||||||
volumes:
|
hass:
|
||||||
- ./data:/etc/hass
|
image: vimagick/hass:debian
|
||||||
net: host
|
volumes:
|
||||||
privileged: yes
|
- ./data:/etc/hass
|
||||||
restart: unless-stopped
|
net: host
|
||||||
|
privileged: yes
|
||||||
hcfg:
|
restart: unless-stopped
|
||||||
image: vimagick/hcfg
|
|
||||||
volumes:
|
|
||||||
- ./data:/etc/hass
|
|
||||||
net: host
|
|
||||||
working_dir: /etc/hass
|
|
||||||
restart: unless-stopped
|
|
||||||
|
Loading…
Reference in New Issue
Block a user