diff --git a/conf/layer.conf b/conf/layer.conf index f5c1b1ec..be08a985 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -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" diff --git a/recipes-containers/containerd/containerd-docker_git.bb b/recipes-containers/containerd/containerd-docker_git.bb new file mode 100644 index 00000000..f6dcaeca --- /dev/null +++ b/recipes-containers/containerd/containerd-docker_git.bb @@ -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" diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb new file mode 100644 index 00000000..37f85472 --- /dev/null +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb @@ -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" diff --git a/recipes-containers/containerd/containerd_git.bb b/recipes-containers/containerd/containerd.inc similarity index 95% rename from recipes-containers/containerd/containerd_git.bb rename to recipes-containers/containerd/containerd.inc index 67011a35..a128fbde 100644 --- a/recipes-containers/containerd/containerd_git.bb +++ b/recipes-containers/containerd/containerd.inc @@ -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} \ diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb index 46ad26e9..c8ab45a0 100644 --- a/recipes-containers/docker/docker_git.bb +++ b/recipes-containers/docker/docker_git.bb @@ -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" diff --git a/recipes-containers/runc/runc-docker_git.bb b/recipes-containers/runc/runc-docker_git.bb new file mode 100644 index 00000000..96d48cae --- /dev/null +++ b/recipes-containers/runc/runc-docker_git.bb @@ -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" diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb new file mode 100644 index 00000000..a302d4b5 --- /dev/null +++ b/recipes-containers/runc/runc-opencontainers_git.bb @@ -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" diff --git a/recipes-containers/runc/runc_git.bb b/recipes-containers/runc/runc.inc similarity index 86% rename from recipes-containers/runc/runc_git.bb rename to recipes-containers/runc/runc.inc index c5cf40be..7626dad7 100644 --- a/recipes-containers/runc/runc_git.bb +++ b/recipes-containers/runc/runc.inc @@ -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} \