Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --image-list imageList #1864

Merged
merged 1 commit into from
Dec 15, 2022
Merged

Conversation

Stevent-fei
Copy link
Collaborator

Describe what this PR does / why we need it

add imageList Flag to sealer build to support download extra container image rather than copy it to rootfs,Provide additional image download method.
eg:
sealer build -t abc:v1 --image-list imageList

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@Stevent-fei Stevent-fei linked an issue Nov 15, 2022 that may be closed by this pull request
@kakaZhou719
Copy link
Member

@Stevent-fei ,i am ok with this logic, while i thought could we unify the download container image logic here. for example : grab all images list we needed via walking build context, and then download everyone.

@@ -253,19 +256,37 @@ func applyRegistryToImage(imageID, tag, manifest string, platform v1.Platform, e
return errors.Wrapf(err, "failed to create working container, imageid: %s", imageID)
}

// download container image form `imageList`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge with code

if err := buildimage.NewMiddlewarePuller(v1.Platform{
		Architecture: arch,
		OS:           _os,
		Variant:      variant,
......

Copy link
Collaborator

@VinceCui VinceCui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VinceCui VinceCui merged commit bae3392 into sealerio:main Dec 15, 2022
jsparter pushed a commit to jsparter/sealer that referenced this pull request Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add imageList Flag to sealer build
4 participants