diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-10-13 11:11:35 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-10-13 11:11:35 -0400 |
commit | a6ae07c0d36189128938987fe805f993e43707ab (patch) | |
tree | 6384ba2f55f9c5cc1c5afc265a870814101f8e63 | |
parent | 018b001b763a3db1629fa8478fa4705e8ae53062 (diff) | |
download | meta-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.bb | 32 |
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 @@ | |||
1 | DESCRIPTION = "A fast and low-memory footprint OCI Container Runtime fully written in C." | ||
2 | LICENSE = "GPLv3" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
4 | PRIORITY = "optional" | ||
5 | |||
6 | SRCREV_crun = "a43f72196f7aaf713dc997eaddd0f08612f60ac0" | ||
7 | SRCREV_libocispec = "01c8f977ff5ed1e8010f40c2572343be1a70a51b" | ||
8 | SRCREV_ispec = "775207bd45b6cb8153ce218cc59351799217451f" | ||
9 | SRCREV_rspec = "19e92ca817772b4466f2ed2b8d808dfb7a8ab4be" | ||
10 | |||
11 | SRCREV_FORMAT = "crun_rspec" | ||
12 | SRC_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 | |||
18 | PV = "0.10.2+git${SRCREV_crun}" | ||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | inherit autotools-brokensep pkgconfig | ||
22 | |||
23 | PACKAGECONFIG ??= "" | ||
24 | |||
25 | DEPENDS = "yajl libcap go-md2man-native" | ||
26 | # TODO: is there a packageconfig to turn this off ? | ||
27 | DEPENDS += "libseccomp" | ||
28 | DEPENDS += "oci-image-spec oci-runtime-spec" | ||
29 | |||
30 | do_install() { | ||
31 | oe_runmake 'DESTDIR=${D}' install | ||
32 | } | ||