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:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot