LCOW: --platform on import (already in API)#1371
Merged
Merged
Conversation
Contributor
silvin-lubecki
approved these changes
Sep 13, 2018
Contributor
silvin-lubecki
left a comment
There was a problem hiding this comment.
LGTM with the doc updated
Contributor
Author
|
Which repo are the docs in again? Oh NVM, they are here. I could have sworn they were in a separate repo. Or is that just the engine? |
Signed-off-by: John Howard <[email protected]>
6ff72cf to
b55a0b6
Compare
Contributor
Author
|
Updated docs. |
Contributor
|
Thank you @jhowardmsft for this PR! |
vdemeester
approved these changes
Sep 14, 2018
Collaborator
vdemeester
left a comment
There was a problem hiding this comment.
LGTM 🐯
cc @thaJeztah
thaJeztah
approved these changes
Sep 14, 2018
| options.changes = dockeropts.NewListOpts(nil) | ||
| flags.VarP(&options.changes, "change", "c", "Apply Dockerfile instruction to the created image") | ||
| flags.StringVarP(&options.message, "message", "m", "", "Set commit message for imported image") | ||
| command.AddPlatformFlag(flags, &options.platform) |
Member
There was a problem hiding this comment.
For future reference (and save some digging); command.AddPlatformFlag() also sets the annotations for API-version and "experimental" being enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: John Howard [email protected]
A tester here found import doesn't work for LCOW. No idea how I missed this - it's in the API, just not in the CLI. As the tar generated in export doesn't have any indication of platform, it needs to be explicit. See how in the before-fix case, it's going down the WCOW route (windowsfilter),
Before:
After: