diff --git a/check_config/Dockerfile b/check_config/Dockerfile index e17b7ed..a5d43ab 100644 --- a/check_config/Dockerfile +++ b/check_config/Dockerfile @@ -1,11 +1,8 @@ ARG BUILD_FROM FROM $BUILD_FROM -# Add env -ENV LANG C.UTF-8 - # Setup base -RUN apk add --no-cache jq python3 \ +RUN apk add --no-cache jq gcc libffi-dev libressl-dev \ && pip3 install --no-cache --upgrade pip # Copy data diff --git a/check_config/build.json b/check_config/build.json new file mode 100644 index 0000000..a90fea1 --- /dev/null +++ b/check_config/build.json @@ -0,0 +1,8 @@ +{ + "build_from": { + "amd64": "homeassistant/amd64-base-python:3.6", + "i386": "homeassistant/i386-base-python:3.6", + "armhf": "homeassistant/armhf-base-python:3.6", + "aarch64": "homeassistant/aarch64-base-python:3.6" + } +} diff --git a/check_config/config.json b/check_config/config.json index 29a1021..aa002d6 100644 --- a/check_config/config.json +++ b/check_config/config.json @@ -1,6 +1,6 @@ { "name": "Check Home Assistant configuration", - "version": "0.7", + "version": "0.8", "slug": "check_config", "description": "Check current Home Assistant configuration against a new version", "url": "https://home-assistant.io/addons/check_config/", diff --git a/check_config/run.sh b/check_config/run.sh index 43587ec..3b49b12 100644 --- a/check_config/run.sh +++ b/check_config/run.sh @@ -22,7 +22,7 @@ fi echo "[Info] Install done, check config now" -cp -r /config /tmp/config > /dev/null +cp -fr /config /tmp/config if ! HASS_OUTPUT="$(hass -c /tmp/config --script check_config)" then echo "[Error] Wrong config found!"