-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Send optional platform spec when creating container #395
Send optional platform spec when creating container #395
Conversation
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
I am happy for this PR to merged as well. If the maintainers want me to make the changes to my PR, i am happy to do that too. |
Hey @mdelapenya @gianarb - sorry to bother you, could I get some eyes on this? I've been using this commit successfully in some of my own tests for a few days with no issues so far. |
Codecov Report
@@ Coverage Diff @@
## master #395 +/- ##
==========================================
+ Coverage 63.98% 64.27% +0.29%
==========================================
Files 18 18
Lines 1108 1117 +9
==========================================
+ Hits 709 718 +9
Misses 295 295
Partials 104 104
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this contribution! and sorry for the delay in the review, I returned from Xmas PTO past Monday
@mdelapenya no worries, thanks for the review! Is there something I should to to fix the CI failure? It seems to be a linting issue with a file I didn't change... 🤔 |
@mdelapenya hi! any updates? should I do anything to fix the CI failure? |
The CI is complaining about an EOF not properly set. Please take a look at #396 I'd say we better push the format fix in a separate PR so that your code can be rebased/merged on top of that |
@mdelapenya I've issued #400 to fix the lint errors - please have a look - I'll rebase this once that one is merged |
Thanks a lot @hairyhenderson !! |
Thanks @gianarb and @mdelapenya 🙇♂️ |
This is based on #342, and adds support for explicitly specifying image platform (like
docker run --platform=...
).I'm opening a new PR because the other one seemed to be stalled, and I needed this for a project anyway. This differs slightly from #342:
platforms.Parse
to parse the platform string instead ofstrings.Split
- this will also handle 3-part platform strings (such aslinux/arm/v6
)Obviously having two PRs open for the same thing isn't ideal, and my goal isn't to compete with #342 - just to get things moving again. If @amitsaha wants to take some of these changes and rebase their own PR, I'm happy with this one being closed!
Signed-off-by: Dave Henderson dhenderson@gmail.com