-
Notifications
You must be signed in to change notification settings - Fork 198
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
feat: --platform flag #380
feat: --platform flag #380
Conversation
5edbbdd
to
a34a657
Compare
looks good to me, I think there's some minor formatting issues? |
Good catch, should be fixed up now with |
88b64a3
to
20e1fc8
Compare
podman's been super flaky, I can't get it to startup properly, but hopefully #385 should fix that and you can rebase on that. |
Can we rebase now? And pull in that macos ci update |
- for images under test, pass the new --platform flag to pull the corresponding image if it is multi-platform capable - test execution via CreateContainerOptions passes in platform. If unset, will default to linux/amd64
gofmt tidy specify correct folder for platform tests
MacOS cannot run containers natively. M1/M2 defaults to linux/arm64 so the "os" field as part of --platform only needs to use linux/ as a default with GOARCH read in for the particular CPU architecture. Same deal with Windows, Docker on windows is virtualized Linux (AFAIU)
c5cef30
to
6d65644
Compare
Rebased, tests are passing again. @loosebazooka let me know if any other changes are needed. |
This closed #373 |
corresponding image if it is multi-platform capable
unset, will default to linux/$GOARCH
Related: #373
This required a small enhancement from go-dockerclient via fsouza/go-dockerclient#1017. Updated go.mod was grabbed from the latest commit.
TODO: