Skip to content

Commit c4e3043

Browse files
committed
update qemu to solve slow builds using qemu binfmt
Signed-off-by: Avi Deitcher <avi@deitcher.net>
1 parent a2753b8 commit c4e3043

4 files changed

Lines changed: 6 additions & 13 deletions

File tree

examples/docker-for-mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ onboot:
1717
- name: sysfs
1818
image: linuxkit/sysfs:6d5bd933762f6b216744c711c6e876756cee9600
1919
- name: binfmt
20-
image: linuxkit/binfmt:594ef260c28aa6d85273b8f08ba3076d340c54d7
20+
image: linuxkit/binfmt:4924dc6b9aa7e0bcc6fe8825c24471eac4684108
2121
# Format and mount the disk image in /var/lib/docker
2222
- name: format
2323
image: linuxkit/format:4f779c0b0d0ba145b7f03211b5cbf59fbbe12e54

pkg/binfmt/Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
# Use Debian testing Qemu 4.2.0 until https://bugs.alpinelinux.org/issues/8131 is resolved.
2-
FROM debian@sha256:731dd1380d6a8d170a695dbeb17fe0eade0e1c29f654cf0a3a07f372191c3f4b AS qemu
3-
RUN apt-get update && apt-get install -y qemu-user-static && \
4-
mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64 && \
5-
mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm && \
6-
mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le && \
7-
mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x && \
8-
mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 && \
9-
mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 && \
10-
rm /usr/bin/qemu-*-static
1+
# Use Debian testing-slim Qemu 4.2.0 until https://bugs.alpinelinux.org/issues/8131 is resolved.
2+
FROM debian@sha256:80381085775a6e69f0f8d09dd9a39495063e348382eb8d4881ba6f142d24b8ab AS qemu
3+
RUN apt-get update && apt-get install -y qemu-user-static
114

125
FROM linuxkit/alpine:7f3944798557de5518a56e3437d7ed982701f224 AS mirror
136

test/cases/040_packages/002_binfmt/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ trap clean_up EXIT
1717

1818
# Test code goes here
1919
linuxkit build --format kernel+initrd --name "${NAME}" test.yml
20-
RESULT="$(linuxkitrun ${NAME})"
20+
RESULT="$(linuxkitrun --mem 2048 ${NAME})"
2121
echo "${RESULT}"
2222
echo "${RESULT}" | grep -q "suite PASSED"
2323

test/cases/040_packages/002_binfmt/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ init:
66
- linuxkit/runc:3c079dfa25a05653db203c2abfb329c4e08ba6f9
77
onboot:
88
- name: binfmt
9-
image: linuxkit/binfmt:594ef260c28aa6d85273b8f08ba3076d340c54d7
9+
image: linuxkit/binfmt:4924dc6b9aa7e0bcc6fe8825c24471eac4684108
1010
- name: test
1111
image: alpine:3.13
1212
binds:

0 commit comments

Comments
 (0)