Skip to content

Commit 9e8dfb5

Browse files
authored
Merge pull request #734 from AkihiroSuda/debug-20220126
Cirrus: skip BuildKit tests
2 parents cdb0052 + 49dd193 commit 9e8dfb5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ linux_cgroup2_task:
3030
rootless_build_script:
3131
- docker build -t test-integration-rootless --target test-integration-rootless .
3232
rootless_test_script:
33-
# FORCE_TCP_DNS: Workaround for https://github.com/containerd/nerdctl/issues/622
34-
- docker run -t --rm --privileged -e FORCE_TCP_DNS=1 test-integration-rootless
33+
# WORKAROUND_CIRRUS: Workaround for https://github.com/containerd/nerdctl/issues/622
34+
- docker run -t --rm --privileged -e WORKAROUND_CIRRUS=1 test-integration-rootless
3535

3636
freebsd_task:
3737
name: "FreeBSD"

Dockerfile.d/test-integration-rootless.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ if [[ "$(id -u)" = "0" ]]; then
2121
nerdctl apparmor load
2222
fi
2323

24-
: "${FORCE_TCP_DNS:=}"
25-
if [[ "$FORCE_TCP_DNS" = "1" ]]; then
26-
# Workaround for https://github.com/containerd/nerdctl/issues/622
27-
# ERROR: failed to do request: Head "https://ghcr.io/v2/stargz-containers/alpine/manifests/3.13-org": dial tcp: lookup ghcr.io on 10.0.2.3:53: read udp 10.0.2.100:50602->10.0.2.3:53: i/o timeout
28-
echo "options use-vc" >>/etc/resolv.conf
24+
: "${WORKAROUND_CIRRUS:=}"
25+
if [[ "$WORKAROUND_CIRRUS" = "1" ]]; then
26+
touch /workaround-cirrus
2927
fi
3028

3129
# Switch to the rootless user via SSH
@@ -36,7 +34,12 @@ else
3634
if grep -q "options use-vc" /etc/resolv.conf; then
3735
containerd-rootless-setuptool.sh nsenter -- sh -euc 'echo "options use-vc" >>/etc/resolv.conf'
3836
fi
39-
containerd-rootless-setuptool.sh install-buildkit
37+
38+
if [[ -e /workaround-cirrus ]]; then
39+
echo "WORKAROUND_CIRRUS: Not enabling BuildKit (https://github.com/containerd/nerdctl/issues/622)" >&2
40+
else
41+
containerd-rootless-setuptool.sh install-buildkit
42+
fi
4043
containerd-rootless-setuptool.sh install-stargz
4144
cat <<EOF >>/home/rootless/.config/containerd/config.toml
4245
[proxy_plugins]

0 commit comments

Comments
 (0)