From cee8d8725ff5c10b25eeb9b2beb7ea7f87fdef8e Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 20 Apr 2017 18:38:07 +0800 Subject: [PATCH] add hcfg --- hass/arm/docker-compose.yml | 13 +++++++++++-- hass/docker-compose.yml | 11 ++++++++++- hcfg/Dockerfile | 23 +++++++++++++++++++++++ hcfg/README.md | 4 ++++ hcfg/arm/Dockerfile | 23 +++++++++++++++++++++++ 5 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 hcfg/Dockerfile create mode 100644 hcfg/README.md create mode 100644 hcfg/arm/Dockerfile diff --git a/hass/arm/docker-compose.yml b/hass/arm/docker-compose.yml index 0e790b1..06c6033 100644 --- a/hass/arm/docker-compose.yml +++ b/hass/arm/docker-compose.yml @@ -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 diff --git a/hass/docker-compose.yml b/hass/docker-compose.yml index 9a67f51..d0fe471 100644 --- a/hass/docker-compose.yml +++ b/hass/docker-compose.yml @@ -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 diff --git a/hcfg/Dockerfile b/hcfg/Dockerfile new file mode 100644 index 0000000..7113cdd --- /dev/null +++ b/hcfg/Dockerfile @@ -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"] diff --git a/hcfg/README.md b/hcfg/README.md new file mode 100644 index 0000000..d074079 --- /dev/null +++ b/hcfg/README.md @@ -0,0 +1,4 @@ +hcfg +==== + +See: https://home-assistant.io/docs/ecosystem/hass-configurator/ diff --git a/hcfg/arm/Dockerfile b/hcfg/arm/Dockerfile new file mode 100644 index 0000000..13e189b --- /dev/null +++ b/hcfg/arm/Dockerfile @@ -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"]