mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
Statically link CNI plugins
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -176,7 +176,7 @@ RUN git clone --filter=tree:0 "${CNI_PLUGINS_CLONE_URL}" /cni-plugins \
|
|||||||
&& eval "$(gimme "${GO_VERSION}")" \
|
&& eval "$(gimme "${GO_VERSION}")" \
|
||||||
&& export GOTOOLCHAIN="go${GO_VERSION}" \
|
&& export GOTOOLCHAIN="go${GO_VERSION}" \
|
||||||
&& mkdir ./bin \
|
&& mkdir ./bin \
|
||||||
&& export GOARCH=$TARGETARCH && export CC=$(target-cc) && export CGO_ENABLED=1 \
|
&& export GOARCH=$TARGETARCH && export CC=$(target-cc) && export CGO_ENABLED=0 \
|
||||||
&& go build -o ./bin/host-local -mod=vendor ./plugins/ipam/host-local \
|
&& go build -o ./bin/host-local -mod=vendor ./plugins/ipam/host-local \
|
||||||
&& go build -o ./bin/loopback -mod=vendor ./plugins/main/loopback \
|
&& go build -o ./bin/loopback -mod=vendor ./plugins/main/loopback \
|
||||||
&& go build -o ./bin/ptp -mod=vendor ./plugins/main/ptp \
|
&& go build -o ./bin/ptp -mod=vendor ./plugins/main/ptp \
|
||||||
|
|||||||
Reference in New Issue
Block a user