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

feature: automatically select image based on image architecture inspect #351

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

cdrage
Copy link
Contributor

@cdrage cdrage commented Apr 18, 2024

feature: automatically select image based on image architecture inspect

What does this PR do?

  • Automatically selects the image based upon what architecture is
    available under inspect image.

Note that this is also in anticipation of manifest feature being added,
so there is some code in here (such as an array, rather than a single
string) for manifest.

Screenshot / video of UI

Screen.Recording.2024-04-18.at.4.53.53.PM.mov

What issues does this PR fix or reference?

Closes #245

How to test this PR?

Open a build, try and click on arm64 / amd64.

Signed-off-by: Charlie Drage [email protected]

@cdrage cdrage requested a review from a team as a code owner April 18, 2024 20:56
### What does this PR do?

* Automatically selects the image based upon what architecture is
  available under inspect image.

Note that this is also in anticipation of manifest feature being added,
so there is some code in here (such as an array, rather than a single
string) for manifest.

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes podman-desktop#245

### How to test this PR?

Open a build, try and click on arm64 / amd64.

<!-- Please explain steps to reproduce -->

Signed-off-by: Charlie Drage <[email protected]>
@cdrage cdrage force-pushed the auto-detect-image branch from a876d6c to 6de6d63 Compare April 18, 2024 20:58
@@ -66,6 +73,24 @@ async function fillBuildOptions() {
}
}

async function fillArchitectures(historyInfo: BootcBuildInfo[]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a lot of overlap with fillBuildOptions, which even sets buildArch in one case. It's fine as-is, but I think they should probably be merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've opened up #358 that we could work on post-summit.

Within #356 I did add some changes for the buildArch section which would help improve it.

@cdrage cdrage merged commit 57d3604 into podman-desktop:main Apr 22, 2024
5 checks passed
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.

Auto-detect arch of image, do not select different arch
2 participants