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

libimage: lookup images by custom platform #622

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

vrothberg
Copy link
Member

Allow for looking up images via customizable arch, os and variant.
This prevents podman run --arch=xxx from redundantly pulling down the
image if needed.

Context: containers/podman/issues/10648
Signed-off-by: Valentin Rothberg [email protected]

Allow for looking up images via customizable arch, os and variant.
This prevents `podman run --arch=xxx` from redundantly pulling down the
image if needed.

Context: containers/podman/issues/10648
Signed-off-by: Valentin Rothberg <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 11, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@vrothberg
Copy link
Member Author

/hold

Before merging, I want to do the plumbing in Podman. cmd/podman/containers does some pull policy which will need some overhaul to get where I want to be.

@rhatdan
Copy link
Member

rhatdan commented Jun 11, 2021

LGTM

@vrothberg
Copy link
Member Author

/hold cancel

@Luap99
Copy link
Member

Luap99 commented Jun 18, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 18, 2021
@openshift-merge-robot openshift-merge-robot merged commit c034cf4 into containers:main Jun 18, 2021
options.Architecture = r.systemContext.ArchitectureChoice
}
if options.Architecture == "" {
options.Architecture = runtime.GOARCH
Copy link
Contributor

Choose a reason for hiding this comment

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

This worries me a bit because it loses the distinction between runtime environment and user request: in particular if this gets to c/image (as it seems to via manifestList.LookupInstance, it turns off variant auto-detection and blindly accepts all variants AFAICS.

@vrothberg vrothberg deleted the platform branch June 21, 2021 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants