imagesOnly return project with all attributes removed but service.images
(project *types.Project)
| 255 | |
| 256 | // imagesOnly return project with all attributes removed but service.images |
| 257 | func imagesOnly(project *types.Project) *types.Project { |
| 258 | digests := types.Services{} |
| 259 | for name, config := range project.Services { |
| 260 | digests[name] = types.ServiceConfig{ |
| 261 | Image: config.Image, |
| 262 | } |
| 263 | } |
| 264 | project = &types.Project{Services: digests} |
| 265 | return project |
| 266 | } |
| 267 | |
| 268 | func runConfigNoInterpolate(ctx context.Context, dockerCli command.Cli, opts configOptions, services []string) ([]byte, error) { |
| 269 | // we can't use ToProject, so the model we render here is only partially resolved |
no outgoing calls
no test coverage detected