Skip to content

let buildx know we support containerd snapshotter#50

Merged
rumpl merged 1 commit intorumpl:c8dfrom
ndeloof:buildx
Aug 10, 2022
Merged

let buildx know we support containerd snapshotter#50
rumpl merged 1 commit intorumpl:c8dfrom
ndeloof:buildx

Conversation

@ndeloof
Copy link
Copy Markdown
Collaborator

@ndeloof ndeloof commented Aug 9, 2022

- What I did
Create moby builder with a special label to let buildx know we use containerd snapshotter and it can enable features accordingly

@ndeloof ndeloof requested a review from rumpl August 9, 2022 12:29
Copy link
Copy Markdown
Owner

@rumpl rumpl left a comment

Choose a reason for hiding this comment

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

LGTM, @tonistiigi @crazy-max LGTY?

@@ -78,7 +78,9 @@ func newSnapshotterController(rt http.RoundTripper, opt Opt) (*mobycontrol.Contr
snapshotter := ctd.DefaultSnapshotter
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but please rebase on #40 for this to be configured instead of hardcoded containerd snapshotter

@crazy-max
Copy link
Copy Markdown
Collaborator

Yes that SGTM!

wo, err := containerd.NewWorkerOpt(opt.Root, opt.ContainerdAddress, snapshotter, opt.ContainerdNamespace,
opt.Rootless, map[string]string{}, dns, nc, opt.ApparmorProfile, nil, "", ctd.WithTimeout(60*time.Second))
opt.Rootless, map[string]string{
"org.mobyproject.buildkit.worker.snapshotter": snapshotter,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants