From 013fe63f17b2e25ba06744c7db436ca0ab01285f Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 8 Nov 2016 15:14:51 -0500 Subject: 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 --- .../oci-systemd-hook/oci-systemd-hook_git.bb | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb (limited to 'recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb') 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 @@ +DESCRIPTION = "OCI systemd hook enables users to run systemd in docker and OCI" +SECTION = "console/utils" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504" +PRIORITY = "optional" + +DEPENDS = "yajl util-linux" + +SRCREV = "ca515c1f399bd0b16e94b7c34aa1ef20498beca6" +SRC_URI = "git://github.com/projectatomic/oci-systemd-hook \ + file://0001-selinux-drop-selinux-support.patch \ + file://0001-configure-drop-selinux-support.patch \ +" + +PV = "0.0.1+git${SRCPV}" +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[selinux] = ",,libselinux" + +EXTRA_OECONF += "--libexecdir=${libexecdir}/oci/hooks.d" + +# nothing to compile, we do it all in the install task +do_compile[noexec] = "1" + +do_install() { + # Avoid building docs, and other artifacts by surgically calling the + # semi-internal target of "install-exec-am" + oe_runmake 'DESTDIR=${D}' install-exec-am +} + +FILES_${PN} += "${libexecdir}/oci/hooks.d/" + -- cgit v1.2.3-54-g00ecf