Skip to content

Commit

Permalink
Make sure to start buildkit socket for containerd
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Apr 22, 2021
1 parent a5f835b commit 2d02aba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/integration/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ func TestImage(t *testing.T) {
t.Fatalf("starting minikube: %v\n%s", err, rr.Output())
}

if ContainerRuntime() == "containerd" {
// sudo systemctl start buildkit.socket
cmd := exec.CommandContext(ctx, Target(), "ssh", "-p", profile, "--", "nohup",
"sudo", "-b", "buildkitd", "--oci-worker=false",
"--containerd-worker=true", "--containerd-worker-namespace=k8s.io")
if rr, err = Run(t, cmd); err != nil {
t.Fatalf("%s failed: %v", rr.Command(), err)
}
// unix:///run/buildkit/buildkitd.sock
}

tests := []struct {
command string
args []string
Expand Down

0 comments on commit 2d02aba

Please sign in to comment.