kopia lustrzana https://github.com/jupyterhub/repo2docker
Add explicit support for labels build parameter
rodzic
00769c0fb2
commit
cf8f3b9195
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
-------
|
-------
|
||||||
|
|
Ładowanie…
Reference in New Issue