configurator: Collection of styling improvements (#896)

* configurator: Prettier JSON & YAML files

* configurator: Change documentation URL

* configurator: Sort build.json

* configurator: Styling improvements to Dockerfile
This commit is contained in:
Franck Nijhof
2019-12-18 14:00:01 +01:00
committed by Pascal Vizeli
parent 73dc608b82
commit aef9fb3a11
4 changed files with 23 additions and 37 deletions

View File

@@ -5,16 +5,18 @@ FROM $BUILD_FROM
ARG CONFIGURATOR_VERSION
ARG HASSIO_AUTH_VERSION
RUN apk add --no-cache \
git \
nginx \
nginx-mod-http-lua \
lua-resty-http \
openssh-client \
&& git clone --depth 1 -b ${HASSIO_AUTH_VERSION} "https://github.com/home-assistant/hassio-auth" \
git \
lua-resty-http \
nginx \
nginx-mod-http-lua \
openssh-client \
&& git clone --depth 1 -b ${HASSIO_AUTH_VERSION} \
"https://github.com/home-assistant/hassio-auth" \
&& cp -f hassio-auth/nginx-frontend/ha-auth.lua /etc/nginx/ \
&& cp -f hassio-auth/nginx-frontend/example/nginx-ingress.conf /etc/nginx/ \
&& rm -fr /usr/src/hassio-auth \
&& pip install --no-cache-dir hass-configurator==${CONFIGURATOR_VERSION}
&& pip install --no-cache-dir \
hass-configurator==${CONFIGURATOR_VERSION}
# Copy data
COPY data/configurator.conf /etc/

View File

@@ -3,20 +3,19 @@
trigger:
branches:
include:
- master
- master
paths:
include:
- configurator/*
- configurator/*
pr: none
variables:
- name: versionBuilder
value: '2.0'
value: "2.0"
- group: docker
jobs:
- template: /.azure/azp-template-addon.yml
parameters:
addon: 'configurator'
arch: '--all'
- template: /.azure/azp-template-addon.yml
parameters:
addon: "configurator"
arch: "--all"

View File

@@ -1,10 +1,10 @@
{
"build_from": {
"aarch64": "homeassistant/aarch64-base-python:3.7",
"amd64": "homeassistant/amd64-base-python:3.7",
"i386": "homeassistant/i386-base-python:3.7",
"armhf": "homeassistant/armhf-base-python:3.7",
"armv7": "homeassistant/armv7-base-python:3.7",
"aarch64": "homeassistant/aarch64-base-python:3.7"
"i386": "homeassistant/i386-base-python:3.7"
},
"args": {
"CONFIGURATOR_VERSION": "0.3.7",

View File

@@ -3,14 +3,8 @@
"version": "3.7",
"slug": "configurator",
"description": "Browser-based configuration file editor for Home Assistant",
"url": "https://home-assistant.io/addons/configurator",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"homeassistant": "0.91.1",
"startup": "application",
"webui": "http://[HOST]:[PORT:8080]",
@@ -19,29 +13,20 @@
"auth_api": true,
"homeassistant_api": true,
"boot": "auto",
"map": [
"backup:rw",
"config:rw",
"share:rw",
"ssl:rw"
],
"map": ["backup:rw", "config:rw", "share:rw", "ssl:rw"],
"ports": {
"8080/tcp": null
},
"options": {
"dirsfirst": false,
"enforce_basepath": false,
"ignore_pattern": [
"__pycache__"
],
"ignore_pattern": ["__pycache__"],
"ssh_keys": []
},
"schema": {
"dirsfirst": "bool",
"enforce_basepath": "bool",
"ignore_pattern": [
"str"
],
"ignore_pattern": ["str"],
"ssh_keys": ["str"]
},
"image": "homeassistant/{arch}-addon-configurator"