From 5da3f7dd401cbc36bff040552c5aa6008ad54c56 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 31 Oct 2016 11:28:34 +0800 Subject: [PATCH] add hass --- README.md | 1 + hass/Dockerfile | 15 +++++++++++++++ hass/README.md | 2 ++ hass/arm/Dockerfile | 15 +++++++++++++++ hass/arm/docker-compose.yml | 7 +++++++ hass/docker-compose.yml | 7 +++++++ python/python2/Dockerfile | 5 ++--- python/python3/Dockerfile | 5 ++--- 8 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 hass/Dockerfile create mode 100644 hass/README.md create mode 100644 hass/arm/Dockerfile create mode 100644 hass/arm/docker-compose.yml create mode 100644 hass/docker-compose.yml diff --git a/README.md b/README.md index 71aed54..48f2ce2 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ A collection of delicious docker recipes. - [x] dokuwiki-arm :+1: - [x] gogs-arm :cn: - [x] grafana +- [x] hass - [x] hugo - [x] hugo-arm - [x] jamapi diff --git a/hass/Dockerfile b/hass/Dockerfile new file mode 100644 index 0000000..7948195 --- /dev/null +++ b/hass/Dockerfile @@ -0,0 +1,15 @@ +# +# Dockerfile for hass (Home Assistant) +# + +FROM alpine +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apk add --no-cache python3 \ + && python3 -m pip install --no-cache-dir homeassistant + +VOLUME /etc/hass +EXPOSE 8123 + +ENTRYPOINT ["hass", "--config", "/etc/hass"] diff --git a/hass/README.md b/hass/README.md new file mode 100644 index 0000000..a8636fd --- /dev/null +++ b/hass/README.md @@ -0,0 +1,2 @@ +home-assistant +============== diff --git a/hass/arm/Dockerfile b/hass/arm/Dockerfile new file mode 100644 index 0000000..85e6070 --- /dev/null +++ b/hass/arm/Dockerfile @@ -0,0 +1,15 @@ +# +# Dockerfile for hass-arm (Home Assistant) +# + +FROM easypi/alpine-arm +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apk add --no-cache python3 \ + && python3 -m pip install --no-cache-dir homeassistant + +VOLUME /etc/hass +EXPOSE 8123 + +ENTRYPOINT ["hass", "--config", "/etc/hass"] diff --git a/hass/arm/docker-compose.yml b/hass/arm/docker-compose.yml new file mode 100644 index 0000000..9ee0310 --- /dev/null +++ b/hass/arm/docker-compose.yml @@ -0,0 +1,7 @@ +hass: + image: easypi/hass-arm + ports: + - "8123:8123" + volumes: + - ./data:/etc/hass + restart: unless-stopped diff --git a/hass/docker-compose.yml b/hass/docker-compose.yml new file mode 100644 index 0000000..7c61bf9 --- /dev/null +++ b/hass/docker-compose.yml @@ -0,0 +1,7 @@ +hass: + image: vimagick/hass + ports: + - "8123:8123" + volumes: + - ./data:/etc/hass + restart: unless-stopped diff --git a/python/python2/Dockerfile b/python/python2/Dockerfile index 54d792f..ebdb204 100644 --- a/python/python2/Dockerfile +++ b/python/python2/Dockerfile @@ -6,8 +6,7 @@ FROM alpine MAINTAINER kev RUN set -xe \ - && apk add -U curl python \ - && curl -sSL https://bootstrap.pypa.io/get-pip.py | python \ - && rm -rf /var/cache/apk/* + && apk add --no-cache curl python \ + && curl -sSL https://bootstrap.pypa.io/get-pip.py | python CMD ["python"] diff --git a/python/python3/Dockerfile b/python/python3/Dockerfile index d8b7d3d..5c392ae 100644 --- a/python/python3/Dockerfile +++ b/python/python3/Dockerfile @@ -6,8 +6,7 @@ FROM alpine MAINTAINER kev RUN set -xe \ - && apk add -U curl python3 \ - && curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 \ - && rm -rf /var/cache/apk/* + && apk add --no-cache curl python3 \ + && curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 CMD ["python3"]