-
Notifications
You must be signed in to change notification settings - Fork 653
Prepare 1.7.x #3422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AkihiroSuda
merged 30 commits into
containerd:release/1.7
from
Shubhranshu153:prepare-1.7.x
Sep 10, 2024
Merged
Prepare 1.7.x #3422
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
209c320
build(deps): bump github.com/containerd/accelerated-container-image
dependabot[bot] 80762fb
update Dockerfile go version to 1.22 to support containerd v2 builds
Shubhranshu153 5c27256
update CNI plugins (1.5.1)
AkihiroSuda a437e4b
chore: update runc to v1.1.14
pendo324 f3a1869
fix: Test create with mac address after updating cni version
Shubhranshu153 4f68270
feat: support for --sig-proxy in run
CodeChanning 96bf9ea
feat: support for -a and --attach in run
CodeChanning 2b61e68
feat: add Status and ID as event attributes
CodeChanning d97ca7d
feat: adding filter infrastructure + status and event filter
CodeChanning 48824a7
Include init NetworkSettings within inspect response
chews93319 a8a63b9
fix: Update Test for CNI plugin upgrade
Shubhranshu153 4f8a66f
fix: Anchor Docer Version to v24 and update dependencies
Shubhranshu153 22c59a0
update BuildKit (0.15.2)
AkihiroSuda 002b037
update imgcrypt (1.1.11)
yankay ce82888
update slirp4netns (1.3.1)
AkihiroSuda 5012ba8
update RootlessKit (2.3.1)
AkihiroSuda d4fdd9b
update bypass4netns (0.4.1)
AkihiroSuda 149f87c
update Kubo (0.29.0)
AkihiroSuda 47164ce
update Go (1.23)
AkihiroSuda 553d52b
CI: update Ubuntu (24.04)
AkihiroSuda 658a95b
Update go mod and go sum
Shubhranshu153 d447f54
update Nydus (2.2.5)
AkihiroSuda 3e7af3b
update soci-snapshotter (0.7.0)
AkihiroSuda e974cc5
build(deps): bump tonistiigi/xx from 1.4.0 to 1.5.0
dependabot[bot] 4451ac1
update debian (12)
AkihiroSuda 1d46b4b
Add ubuntu 22.04 test to the matrix
Shubhranshu153 2df0c94
Update golangci-lint version and go mod cleanup
Shubhranshu153 02d73cc
Fix S1009 (see https://staticcheck.dev/docs/checks#S1009)
apostasie 7cab42c
Update deprecated packages
Shubhranshu153 a803e60
Update containerd version to 1.7.22
Shubhranshu153 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -9,13 +9,13 @@ env: | |
GO111MODULE: on | ||
jobs: | ||
release: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 40 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.x | ||
go-version: 1.23.x | ||
- name: "Compile binaries" | ||
run: make artifacts | ||
- name: "SHA256SUMS" | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -8,12 +8,12 @@ on: | |
pull_request: | ||
|
||
env: | ||
GO_VERSION: 1.21.x | ||
GO_VERSION: 1.23.x | ||
|
||
jobs: | ||
project: | ||
name: Project Checks | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -34,7 +34,7 @@ jobs: | |
working-directory: src/github.com/containerd/nerdctl | ||
|
||
lint: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -54,7 +54,7 @@ jobs: | |
run: yamllint . | ||
|
||
test-unit: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -74,16 +74,20 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
# ubuntu-20.04: cgroup v1, ubuntu-22.04: cgroup v2 | ||
# ubuntu-20.04: cgroup v1, ubuntu-22.04 and later: cgroup v2 | ||
include: | ||
- ubuntu: 20.04 | ||
containerd: v1.6.31 | ||
- ubuntu: 20.04 | ||
containerd: v1.7.16 | ||
containerd: v1.7.21 | ||
- ubuntu: 22.04 | ||
containerd: v1.7.16 | ||
containerd: v1.7.21 | ||
- ubuntu: 22.04 | ||
containerd: main | ||
- ubuntu: 24.04 | ||
containerd: v1.7.21 | ||
- ubuntu: 24.04 | ||
containerd: main | ||
env: | ||
UBUNTU_VERSION: "${{ matrix.ubuntu }}" | ||
CONTAINERD_VERSION: "${{ matrix.containerd }}" | ||
|
@@ -110,10 +114,10 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
# ubuntu-20.04: cgroup v1, ubuntu-22.04: cgroup v2 | ||
# ubuntu-20.04: cgroup v1, ubuntu-22.04 and later: cgroup v2 | ||
include: | ||
- ubuntu: 22.04 | ||
containerd: v1.7.16 | ||
- ubuntu: 24.04 | ||
containerd: v1.7.21 | ||
env: | ||
UBUNTU_VERSION: "${{ matrix.ubuntu }}" | ||
CONTAINERD_VERSION: "${{ matrix.containerd }}" | ||
|
@@ -154,47 +158,78 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
# ubuntu-22.04: cgroup v1, ubuntu-22.04: cgroup v2 | ||
# ubuntu-20.04: cgroup v1, ubuntu-22.04 and later: cgroup v2 | ||
include: | ||
- ubuntu: 20.04 | ||
containerd: v1.6.31 | ||
rootlesskit: v1.1.1 | ||
target: test-integration-rootless | ||
- ubuntu: 20.04 | ||
containerd: v1.7.16 | ||
rootlesskit: v2.0.2 | ||
containerd: v1.7.21 | ||
rootlesskit: v2.3.1 | ||
target: test-integration-rootless | ||
- ubuntu: 22.04 | ||
containerd: v1.7.16 | ||
containerd: v1.7.21 | ||
rootlesskit: v1.1.1 | ||
target: test-integration-rootless | ||
- ubuntu: 22.04 | ||
containerd: main | ||
rootlesskit: v2.0.2 | ||
containerd: main # v2.0.0-rc.X | ||
rootlesskit: v2.3.1 | ||
target: test-integration-rootless | ||
- ubuntu: 24.04 | ||
containerd: v1.7.21 | ||
rootlesskit: v1.1.1 | ||
target: test-integration-rootless | ||
- ubuntu: 24.04 | ||
containerd: main # v2.0.0-rc.X | ||
rootlesskit: v2.3.1 | ||
target: test-integration-rootless | ||
- ubuntu: 20.04 | ||
containerd: v1.6.31 | ||
rootlesskit: v1.1.1 | ||
target: test-integration-rootless-port-slirp4netns | ||
- ubuntu: 20.04 | ||
containerd: v1.7.16 | ||
rootlesskit: v2.0.2 | ||
containerd: v1.7.21 | ||
rootlesskit: v2.3.1 | ||
target: test-integration-rootless-port-slirp4netns | ||
- ubuntu: 22.04 | ||
containerd: v1.7.16 | ||
containerd: v1.7.21 | ||
rootlesskit: v1.1.1 | ||
target: test-integration-rootless-port-slirp4netns | ||
- ubuntu: 22.04 | ||
containerd: main | ||
rootlesskit: v2.0.2 | ||
containerd: main # v2.0.0-rc.X | ||
rootlesskit: v2.3.1 | ||
target: test-integration-rootless-port-slirp4netns | ||
- ubuntu: 24.04 | ||
containerd: v1.7.21 | ||
rootlesskit: v1.1.1 | ||
target: test-integration-rootless-port-slirp4netns | ||
- ubuntu: 24.04 | ||
containerd: main # v2.0.0-rc.X | ||
rootlesskit: v2.3.1 | ||
target: test-integration-rootless-port-slirp4netns | ||
env: | ||
UBUNTU_VERSION: "${{ matrix.ubuntu }}" | ||
CONTAINERD_VERSION: "${{ matrix.containerd }}" | ||
ROOTLESSKIT_VERSION: "${{ matrix.rootlesskit }}" | ||
TEST_TARGET: "${{ matrix.target }}" | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: "Set up AppArmor" | ||
if: matrix.ubuntu == '24.04' | ||
run: | | ||
cat <<EOT | sudo tee "/etc/apparmor.d/usr.local.bin.rootlesskit" | ||
abi <abi/4.0>, | ||
include <tunables/global> | ||
|
||
/usr/local/bin/rootlesskit flags=(unconfined) { | ||
userns, | ||
|
||
# Site-specific additions and overrides. See local/README for details. | ||
include if exists <local/usr.local.bin.rootlesskit> | ||
} | ||
EOT | ||
sudo systemctl restart apparmor.service | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
- name: "Register QEMU (tonistiigi/binfmt)" | ||
|
@@ -205,11 +240,11 @@ jobs: | |
run: docker run -t --rm --privileged -e WORKAROUND_ISSUE_622=1 ${TEST_TARGET} | ||
|
||
cross: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 40 | ||
strategy: | ||
matrix: | ||
go-version: ["1.21.x", "1.22.x"] | ||
go-version: ["1.22.x", "1.23.x"] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -223,8 +258,8 @@ jobs: | |
run: GO_VERSION="$(echo ${{ matrix.go-version }} | sed -e s/.x//)" make artifacts | ||
|
||
test-integration-docker-compatibility: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04 # TODO: ubuntu-24.04 | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -234,15 +269,25 @@ jobs: | |
go-version: ${{ env.GO_VERSION }} | ||
cache: true | ||
check-latest: true | ||
- name: "Enable BuildKit" | ||
- name: "Install Docker v24" | ||
run: | | ||
set -eux -o pipefail | ||
# Uninstall the preinstalled Docker | ||
sudo apt-get remove docker-* containerd.io | ||
# Enable BuildKit explicitly | ||
sudo apt-get install -y moreutils | ||
cat /etc/docker/daemon.json | ||
jq '.features.buildkit = true' </etc/docker/daemon.json | sudo sponge /etc/docker/daemon.json | ||
cat /etc/docker/daemon.json | ||
sudo systemctl restart docker | ||
# Download Docker packages | ||
curl -OSL https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/containerd.io_1.6.33-1_amd64.deb | ||
curl -OSL https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/docker-ce_24.0.9-1~ubuntu.22.04~jammy_amd64.deb | ||
curl -OSL https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/docker-ce-cli_24.0.9-1~ubuntu.22.04~jammy_amd64.deb | ||
curl -OSL https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/docker-buildx-plugin_0.13.1-1~ubuntu.22.04~jammy_amd64.deb | ||
curl -OSL https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/docker-compose-plugin_2.25.0-1~ubuntu.22.04~jammy_amd64.deb | ||
# Install Docker | ||
sudo apt-get install -y ./*.deb | ||
rm -f ./*.deb | ||
# Print docker info | ||
docker info | ||
docker version | ||
|
@@ -276,25 +321,24 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
repository: containerd/containerd | ||
ref: v1.7.16 | ||
ref: v1.7.21 | ||
path: containerd | ||
fetch-depth: 1 | ||
- name: "Set up CNI" | ||
working-directory: containerd | ||
run: GOPATH=$(go env GOPATH) script/setup/install-cni-windows | ||
- name: "Set up containerd" | ||
env: | ||
ctrdVersion: 1.7.16 | ||
ctrdVersion: 1.7.21 | ||
run: powershell hack/configure-windows-ci.ps1 | ||
# TODO: Run unit tests | ||
- name: "Run integration tests" | ||
run: go test -v ./cmd/... | ||
|
||
test-integration-freebsd: | ||
name: FreeBSD | ||
# "Larger" runner is needed for nested virtualization | ||
# https://github.com/organizations/containerd/settings/actions/runners | ||
runs-on: ubuntu-latest-4-cores | ||
# ubuntu-24.04 lacks the vagrant package | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 20 | ||
|
||
steps: | ||
|
This file contains hidden or 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
This file contains hidden or 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,2 @@ | ||
59279df5853bef19a03ec15c5c31b772e59d91d079ab0221e1bafa023cf41c35 buildkit-v0.15.2.linux-amd64.tar.gz | ||
15329adaa5e5b2bea0580f3e5e33765f84504075710bb791e362c3b160ca7e61 buildkit-v0.15.2.linux-arm64.tar.gz |
This file contains hidden or 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,2 @@ | ||
77baa2f669980a82255ffa2f2717de823992480271ee778aa51a9c60ae89ff9b cni-plugins-linux-amd64-v1.5.1.tgz | ||
c2a292714d0fad98a3491ae43df8ad58354b3c0bdf5d5a3e281777967c70fcff cni-plugins-linux-arm64-v1.5.1.tgz |
This file contains hidden or 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,6 @@ | ||
57bc67f71b8043961417325be13528d4f1e8ec90876cd34c38064431f457070f rootlesskit-aarch64.tar.gz | ||
5154542509736957738478e3624b53865a875c396f978db5adea513d7507dee6 rootlesskit-armv7l.tar.gz | ||
983642556dd3dcbe2c9b764d577882016ad1ca960815ffa13ca76d7da518504f rootlesskit-ppc64le.tar.gz | ||
83c40bb8938828eb15837a4900ba825a1f52227631195c22df85f2e8f7f73546 rootlesskit-riscv64.tar.gz | ||
dd6c8bc7e1c9b5d8c775efcf40854ef1d25205060294f0654a77d996a7f4e172 rootlesskit-s390x.tar.gz | ||
caafdce18e0959f078b4b478d4f352ebf3d556e373265fc7831f1a6d70219ee0 rootlesskit-x86_64.tar.gz |
This file contains hidden or 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,6 @@ | ||
2dd9aac6c2e3203e53cb7b6e4b9fc7123e4e4a9716c8bb1d95951853059a6af5 slirp4netns-aarch64 | ||
ed618c0f2c74014bb736e9e427e18c8791ad9d68311872a41b06fac0d7cb9ef2 slirp4netns-armv7l | ||
a10f70209cee0dd0532fea0e8b6bfde5d16dec5206fd4b3387d861721456de66 slirp4netns-ppc64le | ||
38209015c2f3f4619d9fc46610852887910f33c7a0b96f7d2aa835a7bbc73f31 slirp4netns-riscv64 | ||
9f42718455b1f9cf4b6f0efee314b78e860b8c36dbbb6290f09c8fbedda9ff8a slirp4netns-s390x | ||
4bc5d6c311f9fa7ae00ce54aefe10c2afaf0800fe9e99f32616a964ed804a9e1 slirp4netns-x86_64 |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.