mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-11-30 23:16:04 +07:00
Merge pull request #3859 from dims/statically-link-cni-plugins
Statically link CNI plugins
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}")" \
|
||||
&& export GOTOOLCHAIN="go${GO_VERSION}" \
|
||||
&& 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/loopback -mod=vendor ./plugins/main/loopback \
|
||||
&& go build -o ./bin/ptp -mod=vendor ./plugins/main/ptp \
|
||||
|
||||
Reference in New Issue
Block a user