WIP: Refactory / Cleanup docker base (#73)

* Refactory / Cleanup docker base

* Check ID of running image

* Small bugs / lint

* Add log info

* Fix lint

* Add a real cleanup solution

* fix unused import

* Cleanup restart after updates

* Use restart callback

* rename callback

* Add info log for cleanup & fix lint

* Fix lint

* fix wrong id

* fix set addon as install
This commit is contained in:
Pascal Vizeli
2017-05-31 23:41:04 +02:00
committed by GitHub
parent c1cd9bba45
commit 6b16da93cd
8 changed files with 118 additions and 177 deletions

View File

@@ -46,17 +46,6 @@ def get_arch_from_image(image):
return found.group(1)
def get_version_from_env(env_list):
"""Extract Version from ENV list."""
for env in env_list:
found = _RE_VERSION.match(env)
if found:
return found.group(1)
_LOGGER.error("Can't find VERSION in env")
return None
def get_local_ip(loop):
"""Retrieve local IP address.