PullBaseContainerImages pulls only the fundamentally needed images so they can be available early. We always need web image, and ddev-utilities for housekeeping.
(additionalImages []string, pullAlways bool)
| 2214 | // PullBaseContainerImages pulls only the fundamentally needed images so they can be available early. |
| 2215 | // We always need web image, and ddev-utilities for housekeeping. |
| 2216 | func PullBaseContainerImages(additionalImages []string, pullAlways bool) error { |
| 2217 | base := []string{ |
| 2218 | versionconstants.UtilitiesImage, |
| 2219 | } |
| 2220 | // Only pull the default web image when no project-specific images are provided, |
| 2221 | // otherwise the project's actual web image is already in additionalImages. |
| 2222 | if len(additionalImages) == 0 { |
| 2223 | base = append(base, ddevImages.GetWebImage()) |
| 2224 | } |
| 2225 | if globalconfig.DdevGlobalConfig.XHProfMode == types.XHProfModeXHGui { |
| 2226 | base = append(base, ddevImages.GetXhguiImage()) |
| 2227 | } |
| 2228 | base = append(base, FindNotOmittedImages(nil)...) |
| 2229 | base = append(base, additionalImages...) |
| 2230 | return dockerutil.PullImages(base, pullAlways) |
| 2231 | } |
| 2232 | |
| 2233 | // FindAllImages returns an array of image tags for all containers in the compose file |
| 2234 | func (app *DdevApp) FindAllImages() ([]string, error) { |
no test coverage detected