dhcp_server: Collection of styling changes (#898)

* dhcp_server: Prettier JSON & YAML files

* dhcp_server: Move run.sh into data folder

* dhcp_server: Pin base images
This commit is contained in:
Franck Nijhof
2019-12-18 13:56:05 +01:00
committed by Pascal Vizeli
parent 4fd5cf5da8
commit 0a6b46fe4d
5 changed files with 20 additions and 23 deletions

View File

@@ -8,6 +8,6 @@ ENV LANG C.UTF-8
RUN apk add --no-cache dhcp
# Copy data
COPY run.sh /
COPY data/run.sh /
CMD [ "/run.sh" ]

View File

@@ -11,12 +11,11 @@ pr: none
variables:
- name: versionBuilder
value: '2.0'
value: "2.0"
- group: docker
jobs:
- template: /.azure/azp-template-addon.yml
parameters:
addon: 'dhcp_server'
arch: '--all'
addon: "dhcp_server"
arch: "--all"

9
dhcp_server/build.json Normal file
View File

@@ -0,0 +1,9 @@
{
"build_from": {
"aarch64": "homeassistant/aarch64-base:3.10",
"amd64": "homeassistant/amd64-base:3.10",
"armhf": "homeassistant/armhf-base:3.10",
"armv7": "homeassistant/armv7-base:3.10",
"i386": "homeassistant/i386-base:3.10"
}
}

View File

@@ -4,13 +4,7 @@
"slug": "dhcp_server",
"description": "A simple DHCP server",
"url": "https://home-assistant.io/addons/dhcp_server/",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "system",
"boot": "auto",
"host_network": true,
@@ -18,10 +12,7 @@
"default_lease": 86400,
"max_lease": 172800,
"domain": null,
"dns": [
"8.8.8.8",
"8.8.4.4"
],
"dns": ["8.8.8.8", "8.8.4.4"],
"networks": [
{
"subnet": "192.168.1.0",
@@ -39,9 +30,7 @@
"default_lease": "int",
"max_lease": "int",
"domain": "str",
"dns": [
"str"
],
"dns": ["str"],
"networks": [
{
"subnet": "str",