Skip to content

Commit

Permalink
fix(start): pull Studio image
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Dec 1, 2021
1 parent b4042d1 commit 59245bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions internal/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,19 @@ func run(p *tea.Program) error {
return err
}
}
if _, _, err := utils.Docker.ImageInspectWithRaw(ctx, "docker.io/"+utils.StudioImage); err != nil {
out, err := utils.Docker.ImagePull(
ctx,
"docker.io/"+utils.StudioImage,
types.ImagePullOptions{},
)
if err != nil {
return err
}
if err := utils.ProcessPullOutput(out, p); err != nil {
return err
}
}
}

p.Send(utils.StatusMsg("Starting database..."))
Expand Down

0 comments on commit 59245bb

Please sign in to comment.