Add the nri_no_wasm build tag to the BUILDFLAGS for static builds to
disable WASM plugins support in the NRI (Node Resource Interface)
component.
See: https://github.com/containerd/nri/blob/1078130fa016884b4c03880d9d587e6691a67d98/README.md#webassembly-support
The NRI support is still minimal and disabling WASM plugins shaves off a
couple of MiB of the binary size.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
| ... | ... |
@@ -88,7 +88,7 @@ if [ -z "$DOCKER_DEBUG" ]; then |
| 88 | 88 |
LDFLAGS='-w' |
| 89 | 89 |
fi |
| 90 | 90 |
|
| 91 |
-BUILDFLAGS=(${BUILDFLAGS} -tags "netgo osusergo static_build $DOCKER_BUILDTAGS")
|
|
| 91 |
+BUILDFLAGS=(${BUILDFLAGS} -tags "netgo osusergo static_build nri_no_wasm $DOCKER_BUILDTAGS")
|
|
| 92 | 92 |
LDFLAGS_STATIC="-extldflags -static" |
| 93 | 93 |
|
| 94 | 94 |
if [ "$(uname -s)" = 'FreeBSD' ]; then |