Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
allow the builder image that does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
surajssd committed Nov 15, 2017
1 parent 30db464 commit 23d5aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func BuildS2I(image, context, builderImage string) error {
// Generate the buildconfig and imagestream
log.Info("Creating buildconfig and imagestream")
if builderImage == "" {
cmd = []string{"oc", "new-build", "--binary", "--name=" + image}
cmd = []string{"oc", "new-build", "--binary", "--name=" + image, "--allow-missing-images"}
} else {
cmd = []string{"oc", "new-build", "--binary", "--name=" + image, "--docker-image=" + builderImage}
}
Expand Down

0 comments on commit 23d5aa9

Please sign in to comment.