File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 77import tempfile
88
99from iso8601 import parse_date
10- from traitlets import Dict
10+ from traitlets import Dict , List , Unicode
1111
1212import docker
1313
@@ -74,6 +74,15 @@ class DockerEngine(ContainerEngine):
7474 config = True ,
7575 )
7676
77+ extra_buildx_build_args = List (
78+ Unicode ,
79+ [],
80+ help = """
81+ Extra commandline arguments to pass to `docker buildx build` when building the image.
82+ """ ,
83+ help = True
84+ )
85+
7786 def __init__ (self , * , parent ):
7887 super ().__init__ (parent = parent )
7988 try :
@@ -123,6 +132,9 @@ def build(
123132 if platform :
124133 args += ["--platform" , platform ]
125134
135+ # place extra args right *before* the path
136+ args += self .extra_buildx_build_args
137+
126138 if fileobj :
127139 with tempfile .TemporaryDirectory () as d :
128140 tarf = tarfile .open (fileobj = fileobj )
You can’t perform that action at this time.
0 commit comments