diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-11-08 15:14:51 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-11-21 15:58:33 -0500 |
commit | 013fe63f17b2e25ba06744c7db436ca0ab01285f (patch) | |
tree | 2340e69d15fe5ddff9c1c364e5c67f0416dbe680 /recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb | |
parent | 66997c4dcfc5cabd0b357ea46d6ac15ec3163c51 (diff) | |
download | meta-virtualization-013fe63f17b2e25ba06744c7db436ca0ab01285f.tar.gz |
runc: introduce oci-systemd-hook
To support running "OS containers" aka systemd as the entry point under runc,
we provide the oci-systemd-hook.
By adding this to the pre-start and stop hook points, coupled with the proper
config.json, you can start systemd controlled containers via runc.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb')
-rw-r--r-- | recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb b/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb new file mode 100644 index 00000000..872872a1 --- /dev/null +++ b/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "OCI systemd hook enables users to run systemd in docker and OCI" | ||
2 | SECTION = "console/utils" | ||
3 | LICENSE = "GPLv3" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504" | ||
5 | PRIORITY = "optional" | ||
6 | |||
7 | DEPENDS = "yajl util-linux" | ||
8 | |||
9 | SRCREV = "ca515c1f399bd0b16e94b7c34aa1ef20498beca6" | ||
10 | SRC_URI = "git://github.com/projectatomic/oci-systemd-hook \ | ||
11 | file://0001-selinux-drop-selinux-support.patch \ | ||
12 | file://0001-configure-drop-selinux-support.patch \ | ||
13 | " | ||
14 | |||
15 | PV = "0.0.1+git${SRCPV}" | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit autotools pkgconfig | ||
19 | |||
20 | PACKAGECONFIG ??= "" | ||
21 | PACKAGECONFIG[selinux] = ",,libselinux" | ||
22 | |||
23 | EXTRA_OECONF += "--libexecdir=${libexecdir}/oci/hooks.d" | ||
24 | |||
25 | # nothing to compile, we do it all in the install task | ||
26 | do_compile[noexec] = "1" | ||
27 | |||
28 | do_install() { | ||
29 | # Avoid building docs, and other artifacts by surgically calling the | ||
30 | # semi-internal target of "install-exec-am" | ||
31 | oe_runmake 'DESTDIR=${D}' install-exec-am | ||
32 | } | ||
33 | |||
34 | FILES_${PN} += "${libexecdir}/oci/hooks.d/" | ||
35 | |||