Add explicit support for labels build parameter
MODIFY
repo2docker/docker.py
repo2docker/docker.py
@@ -73,6 +73,7 @@ class DockerEngine(ContainerEngine):
dockerfile="",
fileobj=None,
path="",
+ labels=None,
**kwargs,
):
return self._apiclient.build(
@@ -87,6 +88,7 @@ class DockerEngine(ContainerEngine):
dockerfile=dockerfile,
fileobj=fileobj,
path=path,
+ labels=labels,
**kwargs,
)

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

Add explicit support for labels build parameter