Skip to content

Commit 7dff5dc

Browse files
committed
fix(builder): serialize "docker build" operations
1 parent 5e9e92a commit 7dff5dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

builder/docker/docker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ func ParallelBuild(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Inte
157157

158158
for _, img := range images {
159159
img := img
160+
161+
// HACK: ensure "docker build" is serialized by allowing only one entry in
162+
// the WaitGroup. This works around the "simultaneous docker pull" bug.
163+
wg.Wait()
160164
wg.Add(1)
161165
safely.GoDo(c, func() {
162166
log.Infof(c, "Starting build for %s (tag: %s)", img.Path, img.Tag)

0 commit comments

Comments
 (0)