Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Make ignite call ignite-spawn correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Jul 1, 2019
1 parent 887543c commit bce9fde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/ignite-spawn/ignite-spawn.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ func main() {

// Run runs the main cobra command of this application
func Run() error {
if len(os.Args) != 1 {
if len(os.Args) != 2 {
fmt.Printf("Usage: ignite-spawn [VM ID]")
os.Exit(0)
}

vmID := os.Args[0]
vmID := os.Args[1]
opts, err := NewOptions(loader.NewResLoader(), vmID)
if err != nil {
return err
Expand Down
7 changes: 6 additions & 1 deletion cmd/ignite/run/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ func Start(so *startOptions) error {
return err
}

dockerArgs = append(dockerArgs, fmt.Sprintf("weaveworks/ignite:%s", version.GetFirecracker()))
// Use the :dev image tag for non-release builds
imageTag := version.GetIgnite().GitVersion
if version.GetIgnite().GitTreeState == "dirty" {
imageTag = "dev"
}
dockerArgs = append(dockerArgs, fmt.Sprintf("weaveworks/ignite:%s", imageTag))
dockerArgs = append(dockerArgs, so.vm.ID.String())

// Create the VM container in docker
Expand Down

0 comments on commit bce9fde

Please sign in to comment.