Skip to content

Commit

Permalink
dont timeout during dockerfile builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dleviminzi committed Jan 3, 2025
1 parent 13988cf commit 08a4434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/abstractions/image/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (b *Builder) Build(ctx context.Context, opts *BuildOpts, outputChan chan co
return errors.New(fmt.Sprintf("container exited with error: %s\n", msg))
}

if time.Since(start) > defaultContainerSpinupTimeout {
if time.Since(start) > defaultContainerSpinupTimeout && opts.Dockerfile != "" {
outputChan <- common.OutputMsg{Done: true, Success: false, Msg: "Timeout: container not running after 180 seconds.\n"}
return errors.New("timeout: container not running after 180 seconds")
}
Expand Down

0 comments on commit 08a4434

Please sign in to comment.