File tree Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,13 @@ RUN mkdir -p /usr/src/criu \
5050
5151# setup a playground for us to spawn containers in
5252ENV ROOTFS /busybox
53- RUN mkdir -p ${ROOTFS} \
54- && curl -o- -sSL 'https://github.com/docker-library/busybox/raw/a0558a9006ce0dd6f6ec5d56cfd3f32ebeeb815f/glibc/busybox.tar.xz' | tar xfJC - ${ROOTFS}
55-
53+ RUN mkdir -p ${ROOTFS}
5654
5755COPY script/tmpmount /
5856WORKDIR /go/src/github.com/opencontainers/runc
5957ENTRYPOINT ["/tmpmount" ]
6058
6159ADD . /go/src/github.com/opencontainers/runc
60+
61+ RUN . tests/integration/multi-arch.bash \
62+ && curl -o- -sSL `get_busybox` | tar xfJC - ${ROOTFS}
Original file line number Diff line number Diff line change 22
33# Root directory of integration tests.
44INTEGRATION_ROOT=$( dirname " $( readlink -f " $BASH_SOURCE " ) " )
5+
6+ . ${INTEGRATION_ROOT} /multi-arch.bash
7+
58RUNC=" ${INTEGRATION_ROOT} /../../runc"
69RECVTTY=" ${INTEGRATION_ROOT} /../../contrib/cmd/recvtty/recvtty"
710GOPATH=" $( mktemp -d --tmpdir runc-integration-gopath.XXXXXX) "
@@ -14,7 +17,8 @@ BUSYBOX_IMAGE="$BATS_TMPDIR/busybox.tar"
1417BUSYBOX_BUNDLE=" $BATS_TMPDIR /busyboxtest"
1518
1619# hello-world in tar format
17- HELLO_IMAGE=" $TESTDATA /hello-world.tar"
20+ HELLO_FILE=` get_hello`
21+ HELLO_IMAGE=" $TESTDATA /$HELLO_FILE "
1822HELLO_BUNDLE=" $BATS_TMPDIR /hello-world"
1923
2024# CRIU PATH
@@ -270,7 +274,7 @@ function setup_busybox() {
270274 BUSYBOX_IMAGE=" /testdata/busybox.tar"
271275 fi
272276 if [ ! -e $BUSYBOX_IMAGE ]; then
273- curl -o $BUSYBOX_IMAGE -sSL ' https://github.com/docker-library/busybox/raw/a0558a9006ce0dd6f6ec5d56cfd3f32ebeeb815f/glibc/busybox.tar.xz '
277+ curl -o $BUSYBOX_IMAGE -sSL ` get_busybox `
274278 fi
275279 tar --exclude ' ./dev/*' -C " $BUSYBOX_BUNDLE " /rootfs -xf " $BUSYBOX_IMAGE "
276280 cd " $BUSYBOX_BUNDLE "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ get_busybox (){
3+ case $( go env GOARCH) in
4+ arm64)
5+ echo ' https://github.com/docker-library/busybox/raw/23fbd9c43e0f4bec7605091bfba23db278c367ac/glibc/busybox.tar.xz'
6+ ;;
7+ * )
8+ echo ' https://github.com/docker-library/busybox/raw/a0558a9006ce0dd6f6ec5d56cfd3f32ebeeb815f/glibc/busybox.tar.xz'
9+ ;;
10+ esac
11+ }
12+
13+ get_hello (){
14+ case $( go env GOARCH) in
15+ arm64)
16+ echo ' hello-world-aarch64.tar'
17+ ;;
18+ * )
19+ echo ' hello-world.tar'
20+ ;;
21+ esac
22+ }
You can’t perform that action at this time.
0 commit comments