Use init system for add-ons (#237)

* Use init system for add-ons

* Update const.py

* Update validate.py

* Update addon.py

* Update addon.py

* remove options

* remove options p2

* remove options p3

* Update addon.py
This commit is contained in:
Pascal Vizeli 2017-11-04 21:52:41 +01:00 committed by GitHub
parent 13498afa97
commit efbc7b17a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -116,7 +116,7 @@ SCHEMA_ADDON_CONFIG = vol.Schema({
}), False),
vol.Optional(ATTR_IMAGE): vol.Match(r"^[\w{}]+/[\-\w{}]+$"),
vol.Optional(ATTR_TIMEOUT, default=10):
vol.All(vol.Coerce(int), vol.Range(min=10, max=120))
vol.All(vol.Coerce(int), vol.Range(min=10, max=120)),
}, extra=vol.REMOVE_EXTRA)

View File

@ -127,7 +127,7 @@ ATTR_SECURITY = 'security'
ATTR_BUILD_FROM = 'build_from'
ATTR_SQUASH = 'squash'
ATTR_GPIO = 'gpio'
ATTR_LEGACY = 'ATTR_LEGACY'
ATTR_LEGACY = 'legacy'
ATTR_ADDONS_CUSTOM_LIST = 'addons_custom_list'
STARTUP_INITIALIZE = 'initialize'

View File

@ -188,6 +188,7 @@ class DockerAddon(DockerInterface):
name=self.name,
hostname=self.hostname,
detach=True,
init=True,
stdin_open=self.addon.with_stdin,
network_mode=self.network_mode,
ports=self.ports,