forked from containerd/nerdctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
72 lines (70 loc) · 2.17 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# GitHub Actions does not support cgroup v2, so we use Cirrus for cgroup v2.
linux_cgroup2_task:
name: "Linux/cgroup2"
timeout_in: 60m
compute_engine_instance:
image_project: ubuntu-os-cloud
image: family/ubuntu-2110
# CPU limit: `16 / NTASK`: see https://cirrus-ci.org/faq/#are-there-any-limits
cpu: 4
# Memory limit: `4GB * NCPU`
memory: 16G
disk: 100
env:
DEBIAN_FRONTEND: noninteractive
DOCKER_BUILDKIT: 1
# Remove snap loopback devices (conflicts with our loopback devices in TestRunDevice)
remove_snapd_script:
- systemctl disable --now snapd.service snapd.socket
- apt-get purge -y snapd
- losetup -Dv
- losetup -lv
install_docker_script:
- apt-get update
- apt-get install -y docker.io
- docker info
rootful_build_script:
- docker build -t test-integration --target test-integration .
rootful_test_script:
- docker run -t --rm --privileged test-integration
rootless_build_script:
- docker build -t test-integration-rootless --target test-integration-rootless .
rootless_test_script:
# WORKAROUND_CIRRUS: Workaround for https://github.com/containerd/nerdctl/issues/622
- docker run -t --rm --privileged -e WORKAROUND_CIRRUS=1 test-integration-rootless
freebsd_task:
name: "FreeBSD (Unit tests only)"
timeout_in: 20m
compute_engine_instance:
image_project: freebsd-org-cloud-dev
image: family/freebsd-13-0
platform: freebsd
cpu: 2
memory: 4G
install_script:
- pkg install -y go
test_script:
- go test -v ./pkg/...
# TODO: run `go test -v ./cmd/...`
# FIXME: `nerdctl run` is broken on FreeBSD: https://github.com/containerd/nerdctl/issues/868
windows_task:
name: "Windows"
timeout_in: 20m
compute_engine_instance:
image_project: cirrus-images
image: family/windows-docker-builder
platform: windows
cpu: 2
memory: 4G
matrix:
- name: "Windows/containerd-1.6"
env:
ctrdVersion: 1.6.2
env:
CGO_ENABLED: 0
build_script:
- mkdir "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\"
- powershell hack/configure-windows-ci.ps1
- refreshenv
- go install .\cmd\nerdctl\
- go test -v ./cmd/...