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

WCOW: Use commandline in spec if populated #467

Merged
merged 2 commits into from
Feb 8, 2019
Merged

Conversation

lowenna
Copy link
Contributor

@lowenna lowenna commented Feb 1, 2019

Signed-off-by: John Howard jhoward@microsoft.com

@jterry75 Don't merge yet - the vendor part is hacked pending opencontainers/runtime-spec#998 being merged. Have done end-to-end verification of this working with docker with the containerd back-end for runtime.


// escapeArgs makes a Windows-style escaped command line from a set of arguments
func escapeArgs(args []string) string {
escapedArgs := make([]string, len(args))
Copy link
Contributor

Choose a reason for hiding this comment

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

You could use a strings.Builder and avoid the additional array alloc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jterry75 Happy to change if you think it's important enough.

@jterry75
Copy link
Contributor

jterry75 commented Feb 1, 2019

Seems fine to me. Let me know when this gets upstreamed and we get this officially

cmd/runhcs/shim.go Outdated Show resolved Hide resolved
@jterry75
Copy link
Contributor

jterry75 commented Feb 3, 2019

Update LGTM. I like that we no longer accept Cmdline and Args

Signed-off-by: John Howard <jhoward@microsoft.com>
Signed-off-by: John Howard <jhoward@microsoft.com>

This is the version with `CommandLine` added.
@lowenna
Copy link
Contributor Author

lowenna commented Feb 7, 2019

@jterry75 This one is ready to go. Updated to the latest vendor of the runtime-spec.

@lowenna lowenna changed the title *DON'T MERGE YET* WCOW: Use commandline in spec if populated WCOW: Use commandline in spec if populated Feb 7, 2019
Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

LGTM

@lowenna lowenna merged commit 94c0baf into master Feb 8, 2019
@lowenna lowenna deleted the jjh/commandline branch February 8, 2019 04:43
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.

3 participants