This commit is contained in:
kev 2017-04-20 18:38:07 +08:00
parent b9de8e7bbb
commit cee8d8725f
5 changed files with 71 additions and 3 deletions

View File

@ -1,6 +1,15 @@
hass:
image: easypi/hass-arm
image: easypi/hass-arm:debian
volumes:
- ./data:/etc/hass
- ./data:/etc/hass:ro
net: host
privileged: yes
restart: unless-stopped
hcfg:
image: easypi/hcfg-arm
volumes:
- ./data:/etc/hass:rw
net: host
working_dir: /etc/hass
restart: unless-stopped

View File

@ -1,6 +1,15 @@
hass:
image: vimagick/hass
volumes:
- ./data:/etc/hass
- ./data:/etc/hass:ro
net: host
privileged: yes
restart: unless-stopped
hcfg:
image: vimagick/hcfg
volumes:
- ./data:/etc/hass:rw
net: host
working_dir: /etc/hass
restart: unless-stopped

23
hcfg/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
#
# Dockerfile for hcfg (Home Assistant Configurator)
#
FROM alpine
MAINTAINER EasyPi Software Foundation
WORKDIR /opt/hcfg
RUN set -xe \
&& apk add --no-cache curl git python3 \
&& pip3 install gitpython \
&& mkdir -p bin etc \
&& curl -sSL https://raw.githubusercontent.com/danielperna84/hass-configurator/master/configurator.py > bin/hcfg \
&& curl -sSL https://raw.githubusercontent.com/danielperna84/hass-configurator/master/settings.conf > etc/hcfg.conf \
&& sed -i '/^GIT/s/False/True/' /opt/hcfg/bin/hcfg \
&& chmod +x bin/hcfg
VOLUME /opt/hcfg
EXPOSE 3218
CMD ["/opt/hcfg/bin/hcfg", "/opt/hcfg/etc/hcfg.conf"]

4
hcfg/README.md Normal file
View File

@ -0,0 +1,4 @@
hcfg
====
See: https://home-assistant.io/docs/ecosystem/hass-configurator/

23
hcfg/arm/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
#
# Dockerfile for hcfg-arm (Home Assistant Configurator)
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
WORKDIR /opt/hcfg
RUN set -xe \
&& apk add --no-cache curl git python3 \
&& pip3 install gitpython \
&& mkdir -p bin etc \
&& curl -sSL https://raw.githubusercontent.com/danielperna84/hass-configurator/master/configurator.py > bin/hcfg \
&& curl -sSL https://raw.githubusercontent.com/danielperna84/hass-configurator/master/settings.conf > etc/hcfg.conf \
&& sed -i '/^GIT/s/False/True/' /opt/hcfg/bin/hcfg \
&& chmod +x bin/hcfg
VOLUME /opt/hcfg
EXPOSE 3218
CMD ["/opt/hcfg/bin/hcfg", "/opt/hcfg/etc/hcfg.conf"]