Skip to content

Commit

Permalink
Containerd 1.7.10
Browse files Browse the repository at this point in the history
Signed-off-by: utam0k <k0ma@utam0k.jp>
  • Loading branch information
utam0k committed Dec 9, 2023
1 parent 86fc3b1 commit cadd886
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
- uses: actions/checkout@v3
with:
repository: containerd/containerd
ref: v1.6.20
ref: v1.7.10
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.20.12'
cache: true
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libelf-dev libseccomp-dev btrfs-progs libbtrfs-dev
Expand All @@ -68,7 +68,7 @@ jobs:
sudo cp youki /usr/bin/runc
runc --version
- name: Integration Test
run: sudo make TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 40m" integration
run: sudo make RUNC_FLAVOR=crun TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 40m" integration

k8s-tests:
runs-on: ubuntu-22.04
Expand Down
11 changes: 8 additions & 3 deletions Vagrantfile.containerd2youki
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

GO_VERSION = "1.20.12"
CONTAINERD_VERSION = "1.7.10"

Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2204"
config.vm.synced_folder '.', '/vagrant/youki', disabled: false
Expand All @@ -13,6 +16,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "bootstrap", type: "shell" do |s|
s.inline = <<-SHELL
set -e -u -o pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install -y \
make \
pkg-config \
Expand All @@ -23,15 +27,15 @@ Vagrant.configure("2") do |config|
libseccomp-dev \
libbtrfs-dev \
btrfs-progs
wget --quiet https://go.dev/dl/go1.18.1.linux-amd64.tar.gz -O /tmp/go1.18.1.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/go1.18.1.linux-amd64.tar.gz
wget --quiet https://go.dev/dl/go#{GO_VERSION}.linux-amd64.tar.gz -O /tmp/go#{GO_VERSION}.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/go#{GO_VERSION}.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
echo "export GOPATH=$HOME/go" >> ~/.bashrc
export PATH=$PATH:$HOME/.cargo/bin:/usr/local/go/bin
export GOPATH=$HOME/go
git clone https://github.com/containerd/containerd \
/root/go/src/github.com/containerd/containerd -b v1.6.20
/root/go/src/github.com/containerd/containerd -b v#{CONTAINERD_VERSION}
cd /root/go/src/github.com/containerd/containerd
make
Expand All @@ -47,6 +51,7 @@ Vagrant.configure("2") do |config|

config.vm.provision "test", type: "shell" do |s|
s.inline = <<-SHELL
export RUNC_FLAVOR=crun
cd /root/go/src/github.com/containerd/containerd/
export PATH=$PATH:$HOME/.cargo/bin:/usr/local/go/bin
make TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 120m" integration | tee result.txt
Expand Down

0 comments on commit cadd886

Please sign in to comment.