diff options
Diffstat (limited to 'recipes-containers/containerd')
-rw-r--r-- | recipes-containers/containerd/containerd-opencontainers/0001-Makefile-update-default-PACKAGE-to-v2.patch | 28 | ||||
-rw-r--r-- | recipes-containers/containerd/containerd/0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch (renamed from recipes-containers/containerd/containerd-opencontainers/0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch) | 0 | ||||
-rw-r--r-- | recipes-containers/containerd/containerd/0001-build-don-t-use-gcflags-to-define-trimpath.patch (renamed from recipes-containers/containerd/containerd-opencontainers/0001-build-don-t-use-gcflags-to-define-trimpath.patch) | 0 | ||||
-rw-r--r-- | recipes-containers/containerd/containerd/cni-containerd-net.conflist | 24 | ||||
-rw-r--r-- | recipes-containers/containerd/containerd_git.bb (renamed from recipes-containers/containerd/containerd-opencontainers_git.bb) | 22 |
5 files changed, 38 insertions, 36 deletions
diff --git a/recipes-containers/containerd/containerd-opencontainers/0001-Makefile-update-default-PACKAGE-to-v2.patch b/recipes-containers/containerd/containerd-opencontainers/0001-Makefile-update-default-PACKAGE-to-v2.patch deleted file mode 100644 index 74e313b5..00000000 --- a/recipes-containers/containerd/containerd-opencontainers/0001-Makefile-update-default-PACKAGE-to-v2.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From eb39888898a9d196e3eb63724c6c07777f3b9402 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Wed, 24 Apr 2024 14:10:11 +0800 | ||
4 | Subject: [PATCH] Makefile: update default PACKAGE to v2 | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/containerd/containerd/pull/10125] | ||
7 | |||
8 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
9 | --- | ||
10 | Makefile | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/Makefile b/Makefile | ||
14 | index a5b244191..cb9ff4172 100644 | ||
15 | --- a/Makefile | ||
16 | +++ b/Makefile | ||
17 | @@ -34,7 +34,7 @@ TEST_IMAGE_LIST ?= | ||
18 | # Used to populate variables in version package. | ||
19 | VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.m' --always) | ||
20 | REVISION ?= $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi) | ||
21 | -PACKAGE=github.com/containerd/containerd | ||
22 | +PACKAGE=github.com/containerd/containerd/v2 | ||
23 | SHIM_CGO_ENABLED ?= 0 | ||
24 | |||
25 | ifneq "$(strip $(shell command -v $(GO) 2>/dev/null))" "" | ||
26 | -- | ||
27 | 2.25.1 | ||
28 | |||
diff --git a/recipes-containers/containerd/containerd-opencontainers/0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch b/recipes-containers/containerd/containerd/0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch index 63498a86..63498a86 100644 --- a/recipes-containers/containerd/containerd-opencontainers/0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch +++ b/recipes-containers/containerd/containerd/0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch | |||
diff --git a/recipes-containers/containerd/containerd-opencontainers/0001-build-don-t-use-gcflags-to-define-trimpath.patch b/recipes-containers/containerd/containerd/0001-build-don-t-use-gcflags-to-define-trimpath.patch index 62580c6c..62580c6c 100644 --- a/recipes-containers/containerd/containerd-opencontainers/0001-build-don-t-use-gcflags-to-define-trimpath.patch +++ b/recipes-containers/containerd/containerd/0001-build-don-t-use-gcflags-to-define-trimpath.patch | |||
diff --git a/recipes-containers/containerd/containerd/cni-containerd-net.conflist b/recipes-containers/containerd/containerd/cni-containerd-net.conflist new file mode 100644 index 00000000..ca434d6f --- /dev/null +++ b/recipes-containers/containerd/containerd/cni-containerd-net.conflist | |||
@@ -0,0 +1,24 @@ | |||
1 | { | ||
2 | "cniVersion": "0.4.0", | ||
3 | "name": "containerd-net", | ||
4 | "plugins": [ | ||
5 | { | ||
6 | "type": "bridge", | ||
7 | "bridge": "cni0", | ||
8 | "isGateway": true, | ||
9 | "ipMasq": true, | ||
10 | "promiscMode": true, | ||
11 | "ipam": { | ||
12 | "type": "host-local", | ||
13 | "subnet": "10.88.0.0/16", | ||
14 | "routes": [ | ||
15 | { "dst": "0.0.0.0/0" } | ||
16 | ] | ||
17 | } | ||
18 | }, | ||
19 | { | ||
20 | "type": "portmap", | ||
21 | "capabilities": {"portMappings": true} | ||
22 | } | ||
23 | ] | ||
24 | } | ||
diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd_git.bb index ed73e398..c683fbeb 100644 --- a/recipes-containers/containerd/containerd-opencontainers_git.bb +++ b/recipes-containers/containerd/containerd_git.bb | |||
@@ -5,24 +5,27 @@ DESCRIPTION = "containerd is a daemon to control runC, built for performance and | |||
5 | support as well as checkpoint and restore for cloning and live migration of containers." | 5 | support as well as checkpoint and restore for cloning and live migration of containers." |
6 | 6 | ||
7 | 7 | ||
8 | SRCREV = "b1624c3628954e769dd50783b63823040b2db38c" | 8 | SRCREV = "06b99ca80cdbfbc6cc8bd567021738c9af2b36ce" |
9 | SRC_URI = "git://github.com/containerd/containerd;branch=main;protocol=https;destsuffix=git/src/github.com/containerd/containerd/v2 \ | 9 | SRC_URI = "git://github.com/containerd/containerd;branch=release/2.0;protocol=https;destsuffix=git/src/github.com/containerd/containerd/v2 \ |
10 | file://0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch \ | 10 | file://0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch \ |
11 | file://0001-build-don-t-use-gcflags-to-define-trimpath.patch \ | 11 | file://0001-build-don-t-use-gcflags-to-define-trimpath.patch \ |
12 | file://0001-Makefile-update-default-PACKAGE-to-v2.patch \ | 12 | file://cni-containerd-net.conflist \ |
13 | " | 13 | " |
14 | 14 | ||
15 | # Apache-2.0 for containerd | 15 | # Apache-2.0 for containerd |
16 | LICENSE = "Apache-2.0" | 16 | LICENSE = "Apache-2.0" |
17 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1269f40c0d099c21a871163984590d89" | 17 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1269f40c0d099c21a871163984590d89" |
18 | 18 | ||
19 | CONTAINERD_VERSION = "v2.0.0-beta.0" | 19 | CONTAINERD_VERSION = "v2.0.2" |
20 | CVE_VERSION = "v2.0.0-beta.0" | 20 | CVE_VERSION = "v2.0.2" |
21 | 21 | ||
22 | # EXTRA_OEMAKE += "GODEBUG=1" | 22 | # EXTRA_OEMAKE += "GODEBUG=1" |
23 | 23 | ||
24 | PROVIDES += "virtual/containerd" | 24 | # containerd-opencontainers is to provide compatibility with external |
25 | RPROVIDES:${PN} = "virtual-containerd" | 25 | # packagegroups / recipes that depend on the existing split of containerd |
26 | # between docker and opencontainers. We can drop it in the future. | ||
27 | PROVIDES += "virtual/containerd containerd-opencontainers" | ||
28 | RPROVIDES:${PN} = "virtual-containerd containerd-opencontainers" | ||
26 | 29 | ||
27 | S = "${WORKDIR}/git/src/github.com/containerd/containerd/v2" | 30 | S = "${WORKDIR}/git/src/github.com/containerd/containerd/v2" |
28 | 31 | ||
@@ -96,4 +99,7 @@ COMPATIBLE_HOST = "^(?!(qemu)?mips).*" | |||
96 | 99 | ||
97 | RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}" | 100 | RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}" |
98 | 101 | ||
99 | CVE_PRODUCT = "containerd" | 102 | ## This may need to be made conditional on K3S or similar being |
103 | ## configured in the distro, since we may have collisions. | ||
104 | CNI_NETWORKING_FILES ?= "${UNPACKDIR}/cni-containerd-net.conflist" | ||
105 | inherit cni_networking | ||