summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2019-10-13 11:11:35 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-10-13 11:11:35 -0400
commita6ae07c0d36189128938987fe805f993e43707ab (patch)
tree6384ba2f55f9c5cc1c5afc265a870814101f8e63
parent018b001b763a3db1629fa8478fa4705e8ae53062 (diff)
downloadmeta-virtualization-a6ae07c0d36189128938987fe805f993e43707ab.tar.gz
crun: introduce crun (OCI runtime provider)
Create the initial recipe to provide crun as an alternative OCI runtime provider. This currently has a depdenency on seccomp, but it would be nice if we can make that optional in the future to avoid pulling in all of meta-security as a dependency. Example: % skopeo copy docker://busybox oci:busybox-oci:latest % mkdir busybox-bundle % oci-image-tool create --ref platform.os=linux busybox-oci busybox-bundle % cd busybox-bundle/ % rm config.json % runc spec % runc run foo ^D % crun run foo ^D Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/crun/crun_git.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb
new file mode 100644
index 00000000..7781e110
--- /dev/null
+++ b/recipes-containers/crun/crun_git.bb
@@ -0,0 +1,32 @@
1DESCRIPTION = "A fast and low-memory footprint OCI Container Runtime fully written in C."
2LICENSE = "GPLv3"
3LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
4PRIORITY = "optional"
5
6SRCREV_crun = "a43f72196f7aaf713dc997eaddd0f08612f60ac0"
7SRCREV_libocispec = "01c8f977ff5ed1e8010f40c2572343be1a70a51b"
8SRCREV_ispec = "775207bd45b6cb8153ce218cc59351799217451f"
9SRCREV_rspec = "19e92ca817772b4466f2ed2b8d808dfb7a8ab4be"
10
11SRCREV_FORMAT = "crun_rspec"
12SRC_URI = "git://github.com/containers/crun.git;branch=master;name=crun \
13 git://github.com/containers/libocispec.git;branch=master;name=libocispec;destsuffix=git/libocispec \
14 git://github.com/opencontainers/runtime-spec.git;branch=master;name=rspec;destsuffix=git/libocispec/runtime-spec \
15 git://github.com/opencontainers/image-spec.git;branch=master;name=ispec;destsuffix=git/libocispec/image-spec \
16 "
17
18PV = "0.10.2+git${SRCREV_crun}"
19S = "${WORKDIR}/git"
20
21inherit autotools-brokensep pkgconfig
22
23PACKAGECONFIG ??= ""
24
25DEPENDS = "yajl libcap go-md2man-native"
26# TODO: is there a packageconfig to turn this off ?
27DEPENDS += "libseccomp"
28DEPENDS += "oci-image-spec oci-runtime-spec"
29
30do_install() {
31 oe_runmake 'DESTDIR=${D}' install
32}