From 899d78fba5b72489133f29d86899fb521a888039 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 9 Nov 2021 20:45:19 -0500 Subject: [PATCH] added ha --- Dockerfile | 17 +++++++++++++++++ config.json | 13 +++++++++++++ run.sh | 5 +++++ 3 files changed, 35 insertions(+) create mode 100644 Dockerfile create mode 100644 config.json create mode 100644 run.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dc88393 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +ARG BUILD_FROM +FROM $BUILD_FROM + +ENV LANG C.UTF-8 + +# Install requirements for add-on +RUN apk add --no-cache python3 + +# Python 3 HTTP Server serves the current working dir +# So let's set it to our add-on persistent data directory. +WORKDIR /data + +# Copy data for add-on +COPY run.sh / +RUN chmod a+x /run.sh + +CMD [ "/run.sh" ] \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..6d72b45 --- /dev/null +++ b/config.json @@ -0,0 +1,13 @@ +{ + "name": "Shortumation", + "version": "0.0.0", + "slug": "shortumation", + "description": "A homeassitant addon which provides better UI for the automation.", + "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], + "startup": "before", + "boot": "auto", + "options": {}, + "schema": { + "8000/tcp": 8000 + } +} diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..5146423 --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#!/usr/bin/with-contenv bashio + +echo Hello world! + +python3 -m http.server 8000 \ No newline at end of file