mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Merge pull request #117912 from bart0sh/PR113-fix-e2e-dra-kind-build-image.sh
DRA: fix image build on Mac
This commit is contained in:
commit
006c0110aa
@ -31,9 +31,11 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
goarch=$(go env GOARCH)
|
||||||
|
|
||||||
kind build node-image --image "$tag" "$(pwd)"
|
kind build node-image --image "$tag" "$(pwd)"
|
||||||
curl -L --silent https://github.com/kind-ci/containerd-nightlies/releases/download/$containerd/$containerd-linux-amd64.tar.gz | tar -C "$tmpdir" -vzxf -
|
curl -L --silent https://github.com/kind-ci/containerd-nightlies/releases/download/$containerd/$containerd-linux-"$goarch".tar.gz | tar -C "$tmpdir" -vzxf -
|
||||||
curl -L --silent https://github.com/kind-ci/containerd-nightlies/releases/download/$containerd/runc.amd64 >"$tmpdir/runc"
|
curl -L --silent https://github.com/kind-ci/containerd-nightlies/releases/download/$containerd/runc."$goarch" >"$tmpdir/runc"
|
||||||
|
|
||||||
cat >"$tmpdir/Dockerfile" <<EOF
|
cat >"$tmpdir/Dockerfile" <<EOF
|
||||||
FROM $tag
|
FROM $tag
|
||||||
|
Loading…
Reference in New Issue
Block a user