From 26342e42cacb5b44a841c7cea2b1d7346fdae02e Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 19 Sep 2019 21:15:51 -0700 Subject: [PATCH] Switch to building runc-v1 --- scripts/build | 7 ++++--- vendor.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/build b/scripts/build index 912f8f20e0..37afd997c3 100755 --- a/scripts/build +++ b/scripts/build @@ -42,6 +42,7 @@ rm -f \ bin/cni \ bin/runc \ bin/containerd-shim \ + bin/containerd-shim-runc-v1 \ bin/k3s-server \ bin/kubectl \ bin/crictl \ @@ -67,6 +68,6 @@ CGO_ENABLED=0 go build -tags "$TAGS" -ldflags "$LDFLAGS $STATIC" -o bin/cni ./cm echo Building runc make EXTRA_LDFLAGS="-w -s" BUILDTAGS="apparmor seccomp" -C ./vendor/github.com/opencontainers/runc static cp -f ./vendor/github.com/opencontainers/runc/runc ./bin/runc -echo Building containerd-shim -make -C ./vendor/github.com/containerd/containerd bin/containerd-shim -cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim ./bin/containerd-shim +echo Building containerd-shim-runc-v1 +make -C ./vendor/github.com/containerd/containerd bin/containerd-shim-runc-v1 +cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim-runc-v1 ./bin/containerd-shim-runc-v1 diff --git a/vendor.go b/vendor.go index 7ea9354773..b17f8e6645 100644 --- a/vendor.go +++ b/vendor.go @@ -3,7 +3,7 @@ package main import ( - _ "github.com/containerd/containerd/cmd/containerd-shim" + _ "github.com/containerd/containerd/cmd/containerd-shim-runc-v1" _ "github.com/coreos/go-systemd/activation" _ "github.com/go-bindata/go-bindata" _ "github.com/go-bindata/go-bindata/go-bindata"