You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -71,19 +83,24 @@ value of each duplicate key will be added to the generated Dockerfile.
71
83
deferf.Close()
72
84
73
85
gen:= action.GenerateDockerfile{
74
-
BaseImage: baseImage,
75
-
IndexDir: indexName,
76
-
ExtraLabels: extraLabels,
77
-
Writer: f,
86
+
BaseImage: baseImage,
87
+
BuilderImage: builderImage,
88
+
IndexDir: indexName,
89
+
ExtraLabels: extraLabels,
90
+
Writer: f,
78
91
}
79
92
iferr:=gen.Run(); err!=nil {
80
93
log.Fatal(err)
81
94
}
82
95
returnnil
83
96
},
84
97
}
85
-
cmd.Flags().StringVarP(&baseImage, "binary-image", "i", containertools.DefaultBinarySourceImage, "Image in which to build catalog.")
98
+
cmd.Flags().StringVar(&baseImage, "binary-image", containertools.DefaultBinarySourceImage, "Image in which to build catalog.")
99
+
cmd.Flags().StringVarP(&baseImage, "base-image", "i", containertools.DefaultBinarySourceImage, "Image base to use to build catalog.")
100
+
cmd.Flags().StringVarP(&builderImage, "builder-image", "b", containertools.DefaultBinarySourceImage, "Image to use as a build stage.")
86
101
cmd.Flags().StringSliceVarP(&extraLabelStrs, "extra-labels", "l", []string{}, "Extra labels to include in the generated Dockerfile. Labels should be of the form 'key=value'.")
0 commit comments