feat: apply sealed installation plans without interactive setup
This commit is contained in:
@@ -29,6 +29,16 @@ func CheckCompose(ctx context.Context, runner Runner, installation config.Instal
|
||||
args = append(args, "-f", path)
|
||||
}
|
||||
args = append(args, "config", "--format", "json")
|
||||
return checkResolvedCompose(ctx, runner, args, m, platform)
|
||||
}
|
||||
|
||||
// CheckInstalledCompose includes generated projections and any durable image override.
|
||||
func CheckInstalledCompose(ctx context.Context, runner Runner, installation config.Installation, m Manifest, platform string) Report {
|
||||
return checkResolvedCompose(ctx, runner, installation.ComposeArgs("config", "--format", "json"), m, platform)
|
||||
}
|
||||
|
||||
func checkResolvedCompose(ctx context.Context, runner Runner, args []string, m Manifest, platform string) Report {
|
||||
r := NewReport()
|
||||
result, err := docker(ctx, runner, args...)
|
||||
var effective struct {
|
||||
Services map[string]struct {
|
||||
|
||||
Reference in New Issue
Block a user