Skip to content

Commit aab8180

Browse files
committed
fixing usability so builds are streamed
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 1a52ed4 commit aab8180

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scompose/project/instance.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,15 @@ def build(self, working_dir):
289289
sudo = not ("--fakeroot" in options or "--remote" in options)
290290

291291
bot.info('Building %s' % self.name)
292-
self.client.build(image=sif_binary,
293-
recipe=self.recipe,
294-
options=options,
295-
sudo=sudo)
292+
293+
_, stream = self.client.build(image=sif_binary,
294+
recipe=self.recipe,
295+
options=options,
296+
sudo=sudo,
297+
stream=True)
298+
299+
for line in stream:
300+
print(line)
296301

297302
except:
298303
build = "sudo singularity build %s %s" % (os.path.basename(sif_binary),

0 commit comments

Comments
 (0)