File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class DockerEngine(ContainerEngine):
58
58
https://docker-py.readthedocs.io/en/4.2.0/api.html#module-docker.api.build
59
59
"""
60
60
61
- string_output = True
61
+ string_output = False
62
62
63
63
extra_init_args = Dict (
64
64
{},
@@ -141,12 +141,18 @@ def build(
141
141
142
142
args += [d ]
143
143
144
- yield from execute_cmd (args , True )
144
+ for line in execute_cmd (args , True ):
145
+ # Simulate structured JSON output from buildx build, since we
146
+ # do get structured json output from pushing and running
147
+ yield {"stream" : line }
145
148
else :
146
149
# Assume 'path' is passed in
147
150
args += [path ]
148
151
149
- yield from execute_cmd (args , True )
152
+ for line in execute_cmd (args , True ):
153
+ # Simulate structured JSON output from buildx build, since we
154
+ # do get structured json output from pushing and running
155
+ yield {"stream" : line }
150
156
151
157
def images (self ):
152
158
images = self ._apiclient .images ()
You can’t perform that action at this time.
0 commit comments