Skip to content

Automatically pull generator and dashboard before using - #50

Merged
febbraro merged 7 commits into
developfrom
auto-update-generator-image
Jun 28, 2017
Merged

febbraro merged 7 commits into
developfrom
auto-update-generator-image

Conversation

@grayside

@grayside grayside commented Jun 21, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #49

Comment thread cli/commands/dashboard.go Outdated
}

func (cmd *Dashboard) LaunchDashboard(machine Machine) {
func (cmd *Dashboard) LaunchDashboard(machine Machine, update bool) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is update confusing here. True means don;t update, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I got that flipped. Will fix.

Comment thread cli/commands/project_create.go Outdated
"-it",
"-v", fmt.Sprintf("%s:/generated", cwd),
"--name",
generator_container_name,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we naming the container here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we name the Dashboard container. Since this might actually be done concurrently I'll remove that.

Comment thread cli/commands/start.go Outdated
cmd.out.Verbose.Println("Launching Dashboard...")
dash := Dashboard{BaseCommand{machine: cmd.machine, out: cmd.out}}
dash.LaunchDashboard(cmd.machine)
dash.LaunchDashboard(cmd.machine, true)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we update every time we start the VM, why would we want to provide the option to not update in the dashboard command. We should remove that and always update.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought was that all containers we use should have an auto-update with the option to suppress.

Comment thread cli/commands/dashboard.go Outdated

// If there was an error it implies no previous instance of the image is available
// or that docker operations failed and things will likely go wrong anyway.
if err == nil {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be combined with the if err == nil above? its the same check

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or it doesn;t matter if it exist locally or not. Just always pull it.

@febbraro
febbraro merged commit 31060c0 into develop Jun 28, 2017
@febbraro
febbraro deleted the auto-update-generator-image branch June 28, 2017 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants