-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information
1 parent
0af586e
commit f93c03f
Showing
2 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# We use Vagrant to prepare cgroup v2 env. | ||
|
||
compute_engine_instance: | ||
image_project: cirrus-images | ||
image: family/docker-kvm | ||
platform: linux | ||
nested_virtualization: true | ||
cpu: 4 | ||
memory: 16G | ||
|
||
task_template: &TASK_TEMPLATE | ||
timeout_in: 60m | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
HOME: /root | ||
DOCKER_BUILDKIT: 1 | ||
info_script: | ||
- uname -a | ||
- cat /proc/cpuinfo | ||
- docker info | ||
build_script: | ||
- make | ||
install_libvirt_vagrant_script: | ||
- apt-get update | ||
- apt-get install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt | ||
- systemctl enable --now libvirtd | ||
vagrant_cache: | ||
fingerprint_script: uname -s ; cat Vagrantfile | ||
folder: /root/.vagrant.d | ||
vagrant_up_script: | ||
- vagrant up | ||
- vagrant ssh-config > /tmp/vagrant-ssh-config | ||
|
||
cri_task: | ||
<< : *TASK_TEMPLATE | ||
env: | ||
# yamllint disable rule:key-duplicates | ||
matrix: | ||
CRI: containerd | ||
CRI: crio | ||
test_script: | ||
- ssh -F /tmp/vagrant-ssh-config default /vagrant/hack/smoketest-binaries.sh --cri=$CRI | ||
|
||
compose_task: | ||
<< : *TASK_TEMPLATE | ||
install_docker_script: | ||
- ssh -F /tmp/vagrant-ssh-config default sudo dnf install -y moby-engine docker-compose | ||
- ssh -F /tmp/vagrant-ssh-config default sudo usermod -aG docker vagrant | ||
- ssh -F /tmp/vagrant-ssh-config default sudo systemctl enable --now docker | ||
load_image_script: | ||
- docker save ghcr.io/rootless-containers/usernetes:latest | ssh -F /tmp/vagrant-ssh-config default docker load | ||
test_script: | ||
- ssh -F /tmp/vagrant-ssh-config default /vagrant/hack/smoketest-docker-compose.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters