Merge pull request #4408 from AkihiroSuda/cgroup2-runc

cgroup2 CI: add RUNC_FLAVOR=runc
This commit is contained in:
Maksym Pavlenko 2020-07-20 14:09:33 -07:00 committed by GitHub
commit ec05460c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -434,12 +434,16 @@ jobs:
runs-on: macos-10.15
timeout-minutes: 40
needs: [project, linters, protos, man]
strategy:
matrix:
runc: [runc, crun]
steps:
- name: Checkout containerd
uses: actions/checkout@v2
- name: Start vagrant
env:
RUNC_FLAVOR: ${{ matrix.runc }}
run: vagrant up
- name: Integration

5
Vagrantfile vendored
View File

@ -26,11 +26,10 @@ Vagrant.configure("2") do |config|
v.memory = 2048
v.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
config.vm.provision "shell", env: {"RUNC_FLAVOR"=>ENV["RUNC_FLAVOR"]}, inline: <<-SHELL
set -eux -o pipefail
# configuration
GO_VERSION="1.13.14"
RUNC_FLAVOR="crun"
# install dnf deps
dnf install -y container-selinux gcc git iptables libseccomp-devel lsof make
@ -57,7 +56,7 @@ EOF
cd /root/go/src/github.com/containerd/containerd
# install runc (or crun) and other components
RUNC_FLAVOR=$RUNC_FLAVOR ./script/setup/install-runc
./script/setup/install-runc
./script/setup/install-cni
./script/setup/install-critools