From d4e364f8f91a5f584dbebe24fb68ed3b9e9722a9 Mon Sep 17 00:00:00 2001 From: Jatus Date: Fri, 26 Jan 2024 23:19:14 +0100 Subject: [PATCH] adding ha addon support --- Dockerfile | 14 +++++++++++++ config.yml | 32 +++++++++++++++++++++++++++++ dockerfile => dockerfile.standalone | 0 run.sh | 3 +++ 4 files changed, 49 insertions(+) create mode 100644 Dockerfile create mode 100644 config.yml rename dockerfile => dockerfile.standalone (100%) create mode 100644 run.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..481a39e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +ARG BUILD_FROM +FROM $BUILD_FROM + +COPY ./package.json ./ +COPY ./package-lock.json ./ +COPY ./src ./src +COPY ./tsconfig.json ./ +RUN npm install +RUN npm install ts-node + +COPY run.sh / +RUN chmod a+x /run.sh + +CMD [ "/run.sh" ] \ No newline at end of file diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..4cd5d83 --- /dev/null +++ b/config.yml @@ -0,0 +1,32 @@ +name: "HA-Matter-Bridge" +version: "1.0.0" +slug: folder +description: >- + " +This project serves as a proof of concept to connect HomeAssistant devices to Voice Assistants through the Matter Protocol." +arch: + - amd64 +url: "https://git.jatus.tech/Jatus/ha-matter-bridge" +ports: + 5540/tcp: 5540 +host_network: true +environment: + - HA_HOST=${HA_HOST} + - HA_PORT=${HA_PORT} + - HA_ACCESS_TOKEN=${HA_ACCESS_TOKEN} +map: + - config:rw + - ssl +image: repo/{arch}-my-custom-addon +options: + message: "settings" + settings: + - HA_HOST: localhost + HA_PORT: 8123 + HA_ACCESS_TOKEN: "your acces token" +schema: + message: str + settings: + - HA_HOST: str + HA_PORT: int + HA_ACCESS_TOKEN: str \ No newline at end of file diff --git a/dockerfile b/dockerfile.standalone similarity index 100% rename from dockerfile rename to dockerfile.standalone diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..b6f3dbf --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bashio + +npm run start \ No newline at end of file