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

Support local output in build #391

Merged
merged 1 commit into from Sep 28, 2021
Merged

Conversation

ehazlett
Copy link
Member

This enables --output for build allowing different types of output (oci, local, etc).

@ehazlett ehazlett force-pushed the build-local branch 2 times, most recently from e78e41c to 87ceba8 Compare September 27, 2021 19:21
cmd/nerdctl/build.go Outdated Show resolved Hide resolved
@AkihiroSuda AkihiroSuda added this to the v0.12.0 milestone Sep 27, 2021
@ehazlett ehazlett force-pushed the build-local branch 3 times, most recently from a228684 to d3e081b Compare September 28, 2021 11:35
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM if CI gets green

@AkihiroSuda AkihiroSuda merged commit 91a5175 into containerd:master Sep 28, 2021
@ehazlett
Copy link
Member Author

Thank you!

@ehazlett ehazlett deleted the build-local branch September 28, 2021 14:13
@@ -45,6 +45,38 @@ CMD ["echo", "nerdctl-build-test-string"]
base.Cmd("run", "--rm", imageName).AssertOutContains("nerdctl-build-test-string")
}

func TestBuildLocal(t *testing.T) {
testutil.DockerIncompatible(t)
Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Member Author

Choose a reason for hiding this comment

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

Without it the test errored with not compatible. I'm assuming that's because the regular docker build doesn't support "output" (it's in buildx).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants