MCPcopy Create free account
hub / github.com/docker/compose / prepareBuildOptions

Function prepareBuildOptions

pkg/compose/run.go:216–224  ·  view source on GitHub ↗
(opts api.RunOptions)

Source from the content-addressed store, hash-verified

214}
215
216func prepareBuildOptions(opts api.RunOptions) *api.BuildOptions {
217 if opts.Build == nil {
218 return nil
219 }
220 // Create a copy of build options and restrict to only the target service
221 buildOptsCopy := *opts.Build
222 buildOptsCopy.Services = []string{opts.Service}
223 return &buildOptsCopy
224}
225
226func applyRunOptions(project *types.Project, service *types.ServiceConfig, opts api.RunOptions) {
227 service.Tty = opts.Tty

Callers 1

prepareRunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected