mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
5de00ad9d4
Due to https://github.com/docker-library/busybox/pull/94 the URLs to get busybox has changed, so the current URLs give HTTP 404. Fix the URLs accordingly. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
45 lines
788 B
Bash
45 lines
788 B
Bash
#!/bin/bash
|
|
get_busybox() {
|
|
case $(go env GOARCH) in
|
|
arm64)
|
|
echo 'https://github.com/docker-library/busybox/raw/dist-arm64v8/stable/glibc/busybox.tar.xz'
|
|
;;
|
|
*)
|
|
echo 'https://github.com/docker-library/busybox/raw/dist-amd64/stable/glibc/busybox.tar.xz'
|
|
;;
|
|
esac
|
|
}
|
|
|
|
get_hello() {
|
|
case $(go env GOARCH) in
|
|
arm64)
|
|
echo 'hello-world-aarch64.tar'
|
|
;;
|
|
*)
|
|
echo 'hello-world.tar'
|
|
;;
|
|
esac
|
|
}
|
|
|
|
get_and_extract_debian() {
|
|
tmp=$(mktemp -d)
|
|
cd "$tmp"
|
|
|
|
debian="debian:3.11.6"
|
|
|
|
case $(go env GOARCH) in
|
|
arm64)
|
|
skopeo copy docker://arm64v8/debian:buster "oci:$debian"
|
|
;;
|
|
*)
|
|
skopeo copy docker://amd64/debian:buster "oci:$debian"
|
|
;;
|
|
esac
|
|
|
|
args="$([ -z "${ROOTLESS_TESTPATH+x}" ] && echo "--rootless")"
|
|
umoci unpack $args --image "$debian" "$1"
|
|
|
|
cd -
|
|
rm -rf "$tmp"
|
|
}
|