Skip to content

Commit

Permalink
Updated docker image name to p.Image
Browse files Browse the repository at this point in the history
  • Loading branch information
samalba committed Nov 30, 2018
1 parent 66e9fb9 commit 1379f26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func New(project *project.Project) *Builder {
// Build executes a build.
func (b *Builder) Build(ctx context.Context, opts BuildOpts) error {
ui.Info("Building %s", b.project.Name)
args := []string{"build", "-t", b.project.Name}
args := []string{"build", "-t", b.project.Image}
if opts.NoCache {
args = append(args, "--no-cache")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func initialize(ctx context.Context, p *project.Project) error {
}

ui.Info("Generating configuration and gensis")
if err := dockerRun(ctx, p.RootDir, p.Name, "init"); err != nil {
if err := dockerRun(ctx, p.RootDir, p.Image, "init"); err != nil {
return err
}
if err := ui.Tree(path.Join(p.RootDir, "data"), nil); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func start(p *project.Project, join string) {
ui.Success("Cosmos Explorer is live at: %s", ui.Emphasize("http://localhost:8080/"))
defer cancel()
go startExplorer(ctx, p)
if err := dockerRun(ctx, p.RootDir, p.Name, "start"); err != nil {
if err := dockerRun(ctx, p.RootDir, p.Image, "start"); err != nil {
ui.Fatal("Failed to start the application: %v", err)
}
}

0 comments on commit 1379f26

Please sign in to comment.