diff --git a/Dockerfile b/Dockerfile index 117100a..1284dbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ COPY --from=pybuilder /python/venv /data/venv COPY --from=webbuilder /web/build /data/web COPY api/src /data/src - +COPY run.sh run.sh ENV HASSIO_TOKEN "" ENV BUILD_VERSION $BUILD_VERSION @@ -48,5 +48,5 @@ LABEL \ io.hass.type="addon" \ io.hass.arch="armhf|aarch64|i386|amd64" -CMD [ "/data/venv/bin/python", "-m", "uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8000" ] +CMD [ "/run.sh" ] diff --git a/config.json b/config.json index ac94fea..1f46e8d 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "name": "Shortumation", - "version": "0.0.2", + "version": "0.0.4b", "slug": "shortumation", "url": "https://github.com/asosnovsky/Shortumation", "description": "A homeassitant addon which provides better UI for automations & scripts.", @@ -13,7 +13,14 @@ ], "startup": "application", "boot": "auto", - "webui": "http://[HOST]:[PORT:8000]/web", + "ingress": true, + "ingress_port": 8000, + "ingress_entry": "/web", + "panel_icon": "mdi:home-automation", + "hassio_role": "manager", + "auth_api": true, + "privileged": ["SYS_RAWIO"], + "host_network": true, "map": [ "config:rw" ], diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..d61beb2 --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo $(ls .) + +/data/venv/bin/python -m uvicorn src.app:app --host "0.0.0.0" --port 8000