Repository: opencontainers/runc
File: tests/integration/get-images.sh (Shell)

Code before:
	# https://github.com/docker-library/busybox/tree/f51cc9054cc8eb2996a5b48bf4364997c0c3ab93/latest/glibc/arm32v7
	url="https://github.com/docker-library/busybox/raw/f51cc9054cc8eb2996a5b48bf4364997c0c3ab93/latest/glibc/arm32v7/rootfs.tar.gz"
	;;

arm64)
	# https://github.com/docker-library/busybox/tree/dist-arm64v8
	# https://github.com/docker-library/busybox/tree/ef09fbe6f4c562e34bb67a0ba372702018eaccd4/latest/glibc/arm64v8
	url="https://github.com/docker-library/busybox/raw/ef09fbe6f4c562e34bb67a0ba372702018eaccd4/latest/glibc/arm64v8/rootfs.tar.gz"
	;;

386)
	# https://github.com/docker-library/busybox/tree/dist-i386
	# https://github.com/docker-library/busybox/tree/07b656d2484ca0788433469dbfce9da6c55658b2/latest/glibc/i386
	url="https://github.com/docker-library/busybox/raw/07b656d2484ca0788433469dbfce9da6c55658b2/latest/glibc/i386/rootfs.tar.gz"
	;;

mips64le)
	# https://github.com/docker-library/busybox/tree/dist-mips64le
	# https://github.com/docker-library/busybox/tree/8985b768384fd6f3ed696734e7e4db34b031ee2f/latest/glibc/mips64le
	url="https://github.com/docker-library/busybox/raw/8985b768384fd6f3ed696734e7e4db34b031ee2f/latest/glibc/mips64le/rootfs.tar.gz"
	;;

ppc64le)
	# https://github.com/docker-library/busybox/tree/dist-ppc64le
	# https://github.com/docker-library/busybox/tree/3bbb15b7efd6d99a73690516b4499b6642f97ef5/latest/glibc/ppc64le
	url="https://github.com/docker-library/busybox/raw/3bbb15b7efd6d99a73690516b4499b6642f97ef5/latest/glibc/ppc64le/rootfs.tar.gz"
	;;

riscv64)
	# https://github.com/docker-library/busybox/tree/dist-riscv64
	# https://github.com/docker-library/busybox/tree/0aa8d9691f136754b8dab5af01429b32dfa36490/latest/glibc/riscv64
	url="https://github.com/docker-library/busybox/raw/0aa8d9691f136754b8dab5af01429b32dfa36490/latest/glibc/riscv64/rootfs.tar.gz"
	;;

s390x)
	# https://github.com/docker-library/busybox/tree/dist-s390x
	# https://github.com/docker-library/busybox/tree/221f9e80b411fcfea795ca453cb5d2f9ef24aeee/latest/glibc/s390x
	url="https://github.com/docker-library/busybox/raw/221f9e80b411fcfea795ca453cb5d2f9ef24aeee/latest/glibc/s390x/rootfs.tar.gz"
	;;

*)
	echo >&2 "error: unsupported busybox architecture: $arch"
	exit 1
	;;
esac
rootfs="$TESTDATA/busybox-${arch}.tar.xz"
get "$rootfs" "$url"
var=busybox_image
echo "${var^^}=$rootfs"

case $arch in

Review comment (bug):
I've hacked up a build of this with `busybox_unstripped` so that it hopefully contains debug symbols (and thus will hopefully generate a more useful/helpful core dump):

```suggestion
	url="https://github.com/docker-library/busybox/raw/83c2287084a6f001a67d97fdfa23497c75520f2a/latest/glibc/ppc64le/rootfs.tar.gz"
```

https://github.com/docker-library/busybox/commit/83c2287084a6f001a67d97fdfa23497c75520f2a

Code after:
	# https://github.com/docker-library/busybox/tree/c773a028ec0e18dc92e89e0bc57898883897ef8d/latest/glibc/arm32v7
	url="https://github.com/docker-library/busybox/raw/c773a028ec0e18dc92e89e0bc57898883897ef8d/latest/glibc/arm32v7/rootfs.tar.gz"
	;;

arm64)
	# https://github.com/docker-library/busybox/tree/dist-arm64v8
	# https://github.com/docker-library/busybox/tree/8141f5b047a1fbeefd842388244c045825a61c90/latest/glibc/arm64v8
	url="https://github.com/docker-library/busybox/raw/8141f5b047a1fbeefd842388244c045825a61c90/latest/glibc/arm64v8/rootfs.tar.gz"
	;;

386)
	# https://github.com/docker-library/busybox/tree/dist-i386
	# https://github.com/docker-library/busybox/tree/ddcda848177fffa1df68fbed9cda06bd17757dad/latest/glibc/i386
	url="https://github.com/docker-library/busybox/raw/ddcda848177fffa1df68fbed9cda06bd17757dad/latest/glibc/i386/rootfs.tar.gz"
	;;

ppc64le)
	# https://github.com/docker-library/busybox/tree/dist-ppc64le
	# https://github.com/docker-library/busybox/tree/ddb1ced9350261eb7aa6d117052d04a5ad8dd1b7/latest/glibc/ppc64le
	url="https://github.com/docker-library/busybox/raw/ddb1ced9350261eb7aa6d117052d04a5ad8dd1b7/latest/glibc/ppc64le/rootfs.tar.gz"
	;;

riscv64)
	# https://github.com/docker-library/busybox/tree/dist-riscv64
	# https://github.com/docker-library/busybox/tree/aa4b2b5fc1583c52a2806f38772d2f684f3c3185/latest/glibc/riscv64
	url="https://github.com/docker-library/busybox/raw/aa4b2b5fc1583c52a2806f38772d2f684f3c3185/latest/glibc/riscv64/rootfs.tar.gz"
	;;

s390x)
	# https://github.com/docker-library/busybox/tree/dist-s390x
	# https://github.com/docker-library/busybox/tree/52d5ab6b9089780aaa39f36c7d4562ee0f7ce3d5/latest/glibc/s390x
	url="https://github.com/docker-library/busybox/raw/52d5ab6b9089780aaa39f36c7d4562ee0f7ce3d5/latest/glibc/s390x/rootfs.tar.gz"
	;;

*)
	echo >&2 "error: unsupported busybox architecture: $arch"
	exit 1
	;;
esac
rootfs="$TESTDATA/busybox-${arch}.tar.xz"
get "$rootfs" "$url"
var=busybox_image
echo "${var^^}=$rootfs"

case $arch in
amd64)
	# https://github.com/debuerreotype/docker-debian-artifacts/tree/dist-amd64
	# https://github.com/debuerreotype/docker-debian-artifacts/tree/686d9f6eaada08a754bc7abf6f6184c65c5b378f/buster/slim
	url="https://github.com/debuerreotype/docker-debian-artifacts/raw/686d9f6eaada08a754bc7abf6f6184c65c5b378f/buster/slim/rootfs.tar.xz"
	;;