mirror of https://github.com/k3s-io/k3s
Remove old runc & containerd shims on build
parent
89fa8afaa3
commit
4370fc1482
|
@ -117,13 +117,16 @@ ln -s containerd ./bin/ctr
|
||||||
# echo Building containerd
|
# echo Building containerd
|
||||||
# CGO_ENABLED=0 go build -tags "$TAGS" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC" -o bin/containerd ./cmd/containerd/
|
# CGO_ENABLED=0 go build -tags "$TAGS" -ldflags "$VERSIONFLAGS $LDFLAGS $STATIC" -o bin/containerd ./cmd/containerd/
|
||||||
echo Building runc
|
echo Building runc
|
||||||
|
rm -f ./vendor/github.com/opencontainers/runc/runc
|
||||||
make EXTRA_LDFLAGS="-w -s" BUILDTAGS="$RUNC_TAGS" -C ./vendor/github.com/opencontainers/runc $RUNC_STATIC
|
make EXTRA_LDFLAGS="-w -s" BUILDTAGS="$RUNC_TAGS" -C ./vendor/github.com/opencontainers/runc $RUNC_STATIC
|
||||||
cp -f ./vendor/github.com/opencontainers/runc/runc ./bin/runc
|
cp -f ./vendor/github.com/opencontainers/runc/runc ./bin/runc
|
||||||
|
|
||||||
echo Building containerd-shim
|
echo Building containerd-shim
|
||||||
|
rm -f ./vendor/github.com/containerd/containerd/bin/containerd-shim
|
||||||
make -C ./vendor/github.com/containerd/containerd bin/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
|
cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim ./bin/containerd-shim
|
||||||
|
|
||||||
echo Building containerd-shim-runc-v2
|
echo Building containerd-shim-runc-v2
|
||||||
|
rm -f ./vendor/github.com/containerd/containerd/bin/containerd-shim-runc-v2
|
||||||
make -C ./vendor/github.com/containerd/containerd bin/containerd-shim-runc-v2
|
make -C ./vendor/github.com/containerd/containerd bin/containerd-shim-runc-v2
|
||||||
cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim-runc-v2 ./bin/containerd-shim-runc-v2
|
cp -f ./vendor/github.com/containerd/containerd/bin/containerd-shim-runc-v2 ./bin/containerd-shim-runc-v2
|
||||||
|
|
Loading…
Reference in New Issue