DRA: fix image build on Mac
This commit is contained in:
parent
a55681ef86
commit
d5f4b9634c
@ -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