Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (

// commandline flags
var (
baseImage string
lifecyclePath string // path to lifecycle TGZ
tags stringSlice // tag reference to write lifecycle image
targetOS, targetArch string // operating system and CPU architecture
Expand All @@ -50,6 +51,7 @@ func (s *stringSlice) Set(value string) error {

// Creates lifecycle image from lifecycle tgz
func main() {
flag.StringVar(&baseImage, "baseImage", linuxBaseImage, "base image")
flag.StringVar(&lifecyclePath, "lifecyclePath", "", "path to lifecycle TGZ")
flag.StringVar(&targetOS, "os", runtime.GOOS, "operating system")
flag.StringVar(&targetArch, "arch", runtime.GOARCH, "CPU architecture")
Expand All @@ -62,8 +64,6 @@ func main() {
os.Exit(1)
}

baseImage := linuxBaseImage

var img imgutil.Image
if useDaemon {
dockerClient, err := dockercli.New(dockercli.FromEnv)
Expand Down
Loading