Add build tag to omit grpc

This is needed so we can build the runc shim without grpc as a
transative dependency.
With this change the runc shim binary went from 14MB to 11MB.
The RSS from an idle shim went from about 17MB to 14MB (back around
where it was in in 1.7).

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff
2024-10-01 20:55:27 +00:00
parent 64d29ebe5b
commit 2123855eeb
38 changed files with 170 additions and 197 deletions

3
vendor/modules.txt vendored
View File

@@ -105,7 +105,7 @@ github.com/containerd/cgroups/v3/cgroup2/stats
# github.com/containerd/console v1.0.4
## explicit; go 1.13
github.com/containerd/console
# github.com/containerd/containerd/api v1.8.0-rc.3
# github.com/containerd/containerd/api v1.8.0-rc.3 => ./api
## explicit; go 1.21
github.com/containerd/containerd/api/events
github.com/containerd/containerd/api/runtime/sandbox/v1
@@ -868,3 +868,4 @@ tags.cncf.io/container-device-interface/pkg/parser
# tags.cncf.io/container-device-interface/specs-go v0.8.0
## explicit; go 1.19
tags.cncf.io/container-device-interface/specs-go
# github.com/containerd/containerd/api => ./api