You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This compiles the shim without cgo and statically which ends up to have
lower memory usage and binary size. buildmode=pie cannot be used
without cgo.
ref: golang/go#17789 (comment)
Signed-off-by: Michael Crosby <[email protected]>
bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
147
+
@echo "$(WHALE) bin/containerd-shim"
148
+
@CGO_ENABLED=0 go build -o bin/containerd-shim ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim
0 commit comments