mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 05:15:25 +02:00
runc/containerd: create virtual/runc and virtual/containerd
Since there are two implementations of runc and containerd that may not always be in sync, the docker variant, and the opencontainers variable, we create a virtual/* namespace for these components. Anything requiring runc or containerd should set a preferred provider to get the desired/tested variant. We set the default provider to the docker variants, since they are the primary use case for these components. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
776422fa04
commit
7d6284a079
|
@ -19,3 +19,6 @@ LAYERDEPENDS_virtualization-layer = "core networking-layer"
|
|||
|
||||
# Override security flags
|
||||
require conf/distro/include/virt_security_flags.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/runc ?= "runc-docker"
|
||||
PREFERRED_PROVIDER_virtual/containerd ?= "containerd-docker"
|
||||
|
|
10
recipes-containers/containerd/containerd-docker_git.bb
Normal file
10
recipes-containers/containerd/containerd-docker_git.bb
Normal file
|
@ -0,0 +1,10 @@
|
|||
include containerd.inc
|
||||
|
||||
SRCREV = "03e5862ec0d8d3b3f750e19fca3ee367e13c090e"
|
||||
SRC_URI = "\
|
||||
git://github.com/docker/containerd.git;branch=docker-1.13.x \
|
||||
"
|
||||
CONTAINERD_VERSION = "0.2.3"
|
||||
|
||||
PROVIDES += "virtual/containerd"
|
||||
RPROVIDES_${PN} = "virtual/containerd"
|
|
@ -0,0 +1,9 @@
|
|||
include containerd.inc
|
||||
|
||||
SRCREV = "0ac3cd1be170d180b2baed755e8f0da547ceb267"
|
||||
SRC_URI = "git://github.com/docker/containerd.git;nobranch=1 \
|
||||
"
|
||||
CONTAINERD_VERSION = "0.2.2"
|
||||
|
||||
PROVIDES += "virtual/containerd"
|
||||
RPROVIDES_${PN} = "virtual/containerd"
|
|
@ -4,18 +4,12 @@ DESCRIPTION = "containerd is a daemon to control runC, built for performance and
|
|||
containerd leverages runC's advanced features such as seccomp and user namespace \
|
||||
support as well as checkpoint and restore for cloning and live migration of containers."
|
||||
|
||||
SRCREV = "03e5862ec0d8d3b3f750e19fca3ee367e13c090e"
|
||||
SRC_URI = "\
|
||||
git://github.com/docker/containerd.git;branch=docker-1.13.x \
|
||||
"
|
||||
|
||||
# Apache-2.0 for containerd
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.code;md5=aadc30f9c14d876ded7bedc0afd2d3d7"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
CONTAINERD_VERSION = "0.2.3"
|
||||
PV = "${CONTAINERD_VERSION}+git${SRCREV}"
|
||||
|
||||
DEPENDS = "go-cross-${TARGET_ARCH} \
|
|
@ -63,7 +63,8 @@ DEPENDS_append_class-target = "lvm2"
|
|||
RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \
|
||||
${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \
|
||||
"
|
||||
RDEPENDS_${PN} += "containerd runc"
|
||||
RDEPENDS_${PN} += "virtual/containerd virtual/runc"
|
||||
|
||||
RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"
|
||||
RSUGGESTS_${PN} = "lxc docker-registry rt-tests"
|
||||
DOCKER_PKG="github.com/docker/docker"
|
||||
|
|
11
recipes-containers/runc/runc-docker_git.bb
Normal file
11
recipes-containers/runc/runc-docker_git.bb
Normal file
|
@ -0,0 +1,11 @@
|
|||
include runc.inc
|
||||
|
||||
# Note: this rev is before the required protocol field, update when all components
|
||||
# have been updated to match.
|
||||
SRCREV = "2f7393a47307a16f8cee44a37b262e8b81021e3e"
|
||||
SRC_URI = "git://github.com/docker/runc.git;nobranch=1 \
|
||||
"
|
||||
|
||||
RUNC_VERSION = "1.0.0-rc2"
|
||||
PROVIDES += "virtual/runc"
|
||||
RPROVIDES_${PN} = "virtual/runc"
|
8
recipes-containers/runc/runc-opencontainers_git.bb
Normal file
8
recipes-containers/runc/runc-opencontainers_git.bb
Normal file
|
@ -0,0 +1,8 @@
|
|||
include runc.inc
|
||||
|
||||
SRCREV = "1cdaa709f151b61cee2bdaa09d8e5d2b58a8ba72"
|
||||
SRC_URI = "git://github.com/opencontainers/runc;branch=master \
|
||||
"
|
||||
RUNC_VERSION = "1.0.0-rc1"
|
||||
PROVIDES += "virtual/runc"
|
||||
RPROVIDES_${PN} = "virtual/runc"
|
|
@ -2,20 +2,12 @@ HOMEPAGE = "https://github.com/opencontainers/runc"
|
|||
SUMMARY = "runc container cli tools"
|
||||
DESCRIPTION = "runc is a CLI tool for spawning and running containers according to the OCI specification."
|
||||
|
||||
# Note: this rev is before the required protocol field, update when all components
|
||||
# have been updated to match.
|
||||
SRCREV = "2f7393a47307a16f8cee44a37b262e8b81021e3e"
|
||||
SRC_URI = "\
|
||||
git://github.com/docker/runc.git;nobranch=1 \
|
||||
"
|
||||
|
||||
# Apache-2.0 for containerd
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=435b266b3899aa8a959f17d41c56def8"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
RUNC_VERSION = "1.0.0-rc2"
|
||||
PV = "${RUNC_VERSION}+git${SRCREV}"
|
||||
|
||||
DEPENDS = "go-cross-${TARGET_ARCH} \
|
Loading…
Reference in New Issue
Block a user