mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 01:40:13 +00:00
Fix sample-apiserver E2E image build failure
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
1a41cb8985
commit
f82e98c5fc
@ -28,8 +28,11 @@ bin:
|
||||
docker run --rm -i -v "${TARGET}:${TARGET}:Z" registry.k8s.io/build-image/kube-cross:${KUBE_CROSS_VERSION} \
|
||||
/bin/bash -c "\
|
||||
mkdir -p /go/src /go/bin && \
|
||||
GO111MODULE=on go get -d k8s.io/sample-apiserver@v0.17.0 && \
|
||||
GO111MODULE=on CGO_ENABLED=0 GOARM=${GOARM} GOOS=${OS} GOARCH=${ARCH} go get k8s.io/sample-apiserver@v0.17.0 && \
|
||||
git clone https://github.com/kubernetes/sample-apiserver /go/src/k8s.io/sample-apiserver && \
|
||||
cd /go/src/k8s.io/sample-apiserver && \
|
||||
git checkout tags/v0.17.0 && \
|
||||
go mod tidy && \
|
||||
GO111MODULE=on CGO_ENABLED=0 GOARM=${GOARM} GOOS=${OS} GOARCH=${ARCH} go install . && \
|
||||
find /go/bin -name sample-apiserver* -exec cp {} ${TARGET}/sample-apiserver \;"
|
||||
# for arm, go install uses /go/bin/linux_arm, so just find the file and copy it to the
|
||||
# root so we can copy it out from this throw away container image from a standard location.
|
||||
|
Loading…
Reference in New Issue
Block a user