Use label instead env, cleanup build (#50)

* Use label instead env, cleanup build

* Update const.py

* fix lint

* add space

* fix lint

* use dynamic type

* fix lint

* fix path

* fix label read

* fix bug
This commit is contained in:
Pascal Vizeli
2017-05-15 23:19:35 +02:00
committed by GitHub
parent 6f4f6338c5
commit 4bdd256000
5 changed files with 44 additions and 20 deletions

View File

@@ -4,7 +4,6 @@ import logging
import docker
from . import DockerBase
from ..tools import get_version_from_env
_LOGGER = logging.getLogger(__name__)
@@ -51,8 +50,7 @@ class DockerHomeAssistant(DockerBase):
{'bind': '/ssl', 'mode': 'rw'},
})
self.version = get_version_from_env(
self.container.attrs['Config']['Env'])
self.process_metadata()
_LOGGER.info("Start docker addon %s with version %s",
self.image, self.version)