check_config: bugfixes (#388)

* do not copy config to /tmp on boot - Closes home-assistant/hassio-addons#374

* check_config: version bump

* check_config: add OS deps to satisfy cffi

* check_config: .. and build-base

* Create build.json

* Update Dockerfile

* Update run.sh
This commit is contained in:
Censored3
2018-08-29 00:20:36 +02:00
committed by Pascal Vizeli
parent f625a55b04
commit d7b34cfdc1
4 changed files with 11 additions and 6 deletions

View File

@@ -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

8
check_config/build.json Normal file
View File

@@ -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"
}
}

View File

@@ -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/",

View File

@@ -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!"