Add explicit support for labels build parameter

pull/1097/head
Timo Rothenpieler 2021-11-20 19:13:09 +01:00
rodzic 00769c0fb2
commit cf8f3b9195
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -73,6 +73,7 @@ class DockerEngine(ContainerEngine):
dockerfile="", dockerfile="",
fileobj=None, fileobj=None,
path="", path="",
labels=None,
**kwargs, **kwargs,
): ):
return self._apiclient.build( return self._apiclient.build(
@ -87,6 +88,7 @@ class DockerEngine(ContainerEngine):
dockerfile=dockerfile, dockerfile=dockerfile,
fileobj=fileobj, fileobj=fileobj,
path=path, path=path,
labels=labels,
**kwargs, **kwargs,
) )

Wyświetl plik

@ -176,6 +176,7 @@ class ContainerEngine(LoggingConfigurable):
dockerfile="", dockerfile="",
fileobj=None, fileobj=None,
path="", path="",
labels=None,
**kwargs, **kwargs,
): ):
""" """
@ -204,6 +205,8 @@ class ContainerEngine(LoggingConfigurable):
A tar file-like object containing the build context A tar file-like object containing the build context
path : str path : str
path to the Dockerfile path to the Dockerfile
labels : dict
Dictionary of labels to set on the image
Returns Returns
------- -------