Skip to content

Commit 5d17904

Browse files
committed
Switch busybox in integration tests from glibc to musl
Also, update to the latest version/builds. Signed-off-by: Tianon Gravi <[email protected]>
1 parent 89c46a9 commit 5d17904

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

tests/integration/bootstrap-get-images.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set -Eeuo pipefail
99
# https://github.com/docker-library/bashbrew/releases
1010

1111
images=(
12-
# pinned to an older BusyBox (prior to 1.36 becoming "latest") because 1.36.0 has some unresolved bugs, especially around sha256sum
13-
'https://github.com/docker-library/official-images/raw/eaed422a86b43c885a0f980d48f4bbf346086a4a/library/busybox:glibc'
12+
# https://github.com/docker-library/official-images/commits/HEAD/library/busybox
13+
'https://github.com/docker-library/official-images/raw/1702810da520102b52d89977e025c64a24ddd95e/library/busybox:musl'
1414

1515
# pinned to an older Debian Buster which has more architectures than the latest does (Buster transitioned from the Debian Security Team to the LTS Team which supports a smaller set)
1616
'https://github.com/docker-library/official-images/raw/ce10f6b60289c0c0b5de6f785528b8725f225a58/library/debian:buster-slim'
@@ -76,7 +76,7 @@ bashbrew cat --format '
7676
{{- $branch := $.TagEntry.ArchGitFetch . | trimPrefixes "refs/heads/" -}}
7777
{{- $commit := $.TagEntry.ArchGitCommit . -}}
7878
{{- $dir := $.TagEntry.ArchDirectory . -}}
79-
{{- $tarball := eq $.RepoName "debian" | ternary "rootfs.tar.xz" "busybox.tar.xz" -}}
79+
{{- $tarball := eq $.RepoName "debian" | ternary "rootfs.tar.xz" "rootfs.tar.gz" -}}
8080
8181
{{ . | replace "arm64v8" "arm64" "arm32" "arm" "i386" "386" }} {{- ")\n" -}}
8282
{{- "\t" -}}# {{ $repo }}/tree/{{ $branch }}{{- "\n" -}}

tests/integration/get-images.sh

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,50 +49,50 @@ fi
4949
case $arch in
5050
amd64)
5151
# https://github.com/docker-library/busybox/tree/dist-amd64
52-
# https://github.com/docker-library/busybox/tree/31d342ad033e27c18723a516a2274ab39547be27/stable/glibc
53-
url="https://github.com/docker-library/busybox/raw/31d342ad033e27c18723a516a2274ab39547be27/stable/glibc/busybox.tar.xz"
52+
# https://github.com/docker-library/busybox/tree/3fe52725c149a6966493eefe94d32a2704b6b7bf/latest/musl/amd64
53+
url="https://github.com/docker-library/busybox/raw/3fe52725c149a6966493eefe94d32a2704b6b7bf/latest/musl/amd64/rootfs.tar.gz"
5454
;;
5555

56-
armv5)
57-
# https://github.com/docker-library/busybox/tree/dist-arm32v5
58-
# https://github.com/docker-library/busybox/tree/96ea82ea25565f78b50bd032d5768d64985d6e11/stable/glibc
59-
url="https://github.com/docker-library/busybox/raw/96ea82ea25565f78b50bd032d5768d64985d6e11/stable/glibc/busybox.tar.xz"
56+
armv6)
57+
# https://github.com/docker-library/busybox/tree/dist-arm32v6
58+
# https://github.com/docker-library/busybox/tree/248607b93b215b4e7c8c6b3cd141f23de2e740ac/latest/musl/arm32v6
59+
url="https://github.com/docker-library/busybox/raw/248607b93b215b4e7c8c6b3cd141f23de2e740ac/latest/musl/arm32v6/rootfs.tar.gz"
6060
;;
6161

6262
armv7)
6363
# https://github.com/docker-library/busybox/tree/dist-arm32v7
64-
# https://github.com/docker-library/busybox/tree/5cb6c347469e86e4468e5e248de751b3598bb577/stable/glibc
65-
url="https://github.com/docker-library/busybox/raw/5cb6c347469e86e4468e5e248de751b3598bb577/stable/glibc/busybox.tar.xz"
64+
# https://github.com/docker-library/busybox/tree/5f7f7ef50c73b07d9822c08b5ba0d7fb98b7b43a/latest/musl/arm32v7
65+
url="https://github.com/docker-library/busybox/raw/5f7f7ef50c73b07d9822c08b5ba0d7fb98b7b43a/latest/musl/arm32v7/rootfs.tar.gz"
6666
;;
6767

6868
arm64)
6969
# https://github.com/docker-library/busybox/tree/dist-arm64v8
70-
# https://github.com/docker-library/busybox/tree/94c664b5ca464546266bce54be0082874a44c7b2/stable/glibc
71-
url="https://github.com/docker-library/busybox/raw/94c664b5ca464546266bce54be0082874a44c7b2/stable/glibc/busybox.tar.xz"
70+
# https://github.com/docker-library/busybox/tree/ab49e875ac9a27b182e49d70672530d6ec71d5d7/latest/musl/arm64v8
71+
url="https://github.com/docker-library/busybox/raw/ab49e875ac9a27b182e49d70672530d6ec71d5d7/latest/musl/arm64v8/rootfs.tar.gz"
7272
;;
7373

7474
386)
7575
# https://github.com/docker-library/busybox/tree/dist-i386
76-
# https://github.com/docker-library/busybox/tree/461a473aef31b7726ea99909a24551bf44565c05/stable/glibc
77-
url="https://github.com/docker-library/busybox/raw/461a473aef31b7726ea99909a24551bf44565c05/stable/glibc/busybox.tar.xz"
78-
;;
79-
80-
mips64le)
81-
# https://github.com/docker-library/busybox/tree/dist-mips64le
82-
# https://github.com/docker-library/busybox/tree/47f73f7c735dcd6760a976bfe0012d251b6ef0a9/stable/glibc
83-
url="https://github.com/docker-library/busybox/raw/47f73f7c735dcd6760a976bfe0012d251b6ef0a9/stable/glibc/busybox.tar.xz"
76+
# https://github.com/docker-library/busybox/tree/a3bd0b33cc571a394668621670d67886da930223/latest/musl/i386
77+
url="https://github.com/docker-library/busybox/raw/a3bd0b33cc571a394668621670d67886da930223/latest/musl/i386/rootfs.tar.gz"
8478
;;
8579

8680
ppc64le)
8781
# https://github.com/docker-library/busybox/tree/dist-ppc64le
88-
# https://github.com/docker-library/busybox/tree/9ca13bc214717966383cf97e08606b444b7300e4/stable/glibc
89-
url="https://github.com/docker-library/busybox/raw/9ca13bc214717966383cf97e08606b444b7300e4/stable/glibc/busybox.tar.xz"
82+
# https://github.com/docker-library/busybox/tree/fe3c277a9485182093b8b471d428ce9c9574a056/latest/musl/ppc64le
83+
url="https://github.com/docker-library/busybox/raw/fe3c277a9485182093b8b471d428ce9c9574a056/latest/musl/ppc64le/rootfs.tar.gz"
84+
;;
85+
86+
riscv64)
87+
# https://github.com/docker-library/busybox/tree/dist-riscv64
88+
# https://github.com/docker-library/busybox/tree/57a6af974cdd6e8859cb2c76927765872426c39b/latest/musl/riscv64
89+
url="https://github.com/docker-library/busybox/raw/57a6af974cdd6e8859cb2c76927765872426c39b/latest/musl/riscv64/rootfs.tar.gz"
9090
;;
9191

9292
s390x)
9393
# https://github.com/docker-library/busybox/tree/dist-s390x
94-
# https://github.com/docker-library/busybox/tree/a03814d21bcf97767121bb9422a742ec237a09e2/stable/glibc
95-
url="https://github.com/docker-library/busybox/raw/a03814d21bcf97767121bb9422a742ec237a09e2/stable/glibc/busybox.tar.xz"
94+
# https://github.com/docker-library/busybox/tree/53c1b0b8d9fff46e5ada0e5816fb5fd0281ef246/latest/musl/s390x
95+
url="https://github.com/docker-library/busybox/raw/53c1b0b8d9fff46e5ada0e5816fb5fd0281ef246/latest/musl/s390x/rootfs.tar.gz"
9696
;;
9797

9898
*)

0 commit comments

Comments
 (0)