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

validation/util/container: Use --bundle (and stop requiring BundleDir) #551

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

wking
Copy link
Contributor

@wking wking commented Jan 11, 2018

Address a previous TODO. And now that we are using --bundle, we no longer need to set cmd.Dir. The TODO mentions a lack of runc support, but runc supports --bundle since opencontainers/runc@3fe7d7f3 (opencontainers/runc#827).

@liangchenye
Copy link
Member

'signed-off-by' required @wking

@wking
Copy link
Contributor Author

wking commented Jan 11, 2018 via email

@zhouhao3
Copy link

@wking I think you should resubmit the commit.

@wking
Copy link
Contributor Author

wking commented Jan 18, 2018

Closing and reopening to kick Travis.

@wking wking closed this Jan 18, 2018
@wking wking reopened this Jan 18, 2018
@@ -30,19 +30,26 @@ func NewRuntime(runtimeCommand string, bundleDir string) (Runtime, error) {
var err error
r.RuntimeCommand, err = exec.LookPath(runtimeCommand)
if err != nil {
return Runtime{}, err
return Runtime{}, clierror.NewError(clierror.Executable, err, "1.0.0")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops,I didn't mean to include clierror stuff in this PR.

Address a previous TODO.  And now that we are using --bundle, we no
longer need to set cmd.Dir.  The TODO mentions a lack of runc support,
but runc supports --bundle since opencontainers/runc@3fe7d7f3 (Add
create and start command for container lifecycle, 2016-05-13,
opencontainers/runc#827).

Signed-off-by: W. Trevor King <[email protected]>
@liangchenye
Copy link
Member

liangchenye commented Jan 22, 2018

LGTM

Approved with PullApprove

@liangchenye liangchenye mentioned this pull request Jan 22, 2018
@zhouhao3
Copy link

zhouhao3 commented Jan 22, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit 8e52e10 into opencontainers:master Jan 22, 2018
@wking wking deleted the create-bundle-argument branch January 26, 2018 00:59
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