diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-03-21 10:47:46 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-03-21 10:47:46 -0400 |
commit | d19fda374317daab673ed1b78f68010c14eebf47 (patch) | |
tree | 80e7893092c970365e69fc516d93c4b4272b28ce /recipes-containers/docker/docker.inc | |
parent | 9e4957d36aff17e8c0b22e5499653572cc44adf3 (diff) | |
download | meta-virtualization-d19fda374317daab673ed1b78f68010c14eebf47.tar.gz |
docker: consolidate common depends/options
The split between docker-ce and docker (moby) was initially
quite different, and docker-ce was more of a reference versus
a supported / working package.
Upstream has evolved such that both are valid options, and
may be chosen due to different requirements.
Rather than duplicating all the settings, we can move the
dependencies, init, rdepends, users, etc, into a .inc file and
share them.
For now, we keep the build separate, since depending on the
uprev status, they still can require different build options
and packaging.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/docker/docker.inc')
-rw-r--r-- | recipes-containers/docker/docker.inc | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc new file mode 100644 index 00000000..168d2965 --- /dev/null +++ b/recipes-containers/docker/docker.inc | |||
@@ -0,0 +1,56 @@ | |||
1 | DEPENDS = " \ | ||
2 | go-cli \ | ||
3 | go-pty \ | ||
4 | go-context \ | ||
5 | go-mux \ | ||
6 | go-patricia \ | ||
7 | go-logrus \ | ||
8 | go-fsnotify \ | ||
9 | go-dbus \ | ||
10 | go-capability \ | ||
11 | go-systemd \ | ||
12 | btrfs-tools \ | ||
13 | sqlite3 \ | ||
14 | go-distribution \ | ||
15 | compose-file \ | ||
16 | go-connections \ | ||
17 | notary \ | ||
18 | grpc-go \ | ||
19 | libtool-native \ | ||
20 | libtool \ | ||
21 | " | ||
22 | |||
23 | DEPENDS_append_class-target = " lvm2" | ||
24 | RDEPENDS_${PN} = "util-linux util-linux-unshare iptables \ | ||
25 | ${@bb.utils.contains('DISTRO_FEATURES', 'aufs', 'aufs-util', '', d)} \ | ||
26 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'cgroup-lite', d)} \ | ||
27 | bridge-utils \ | ||
28 | ca-certificates \ | ||
29 | " | ||
30 | RDEPENDS_${PN} += "virtual/containerd virtual/runc" | ||
31 | |||
32 | RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" | ||
33 | |||
34 | inherit pkgconfig | ||
35 | PACKAGECONFIG ??= "" | ||
36 | PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" | ||
37 | |||
38 | inherit systemd update-rc.d | ||
39 | |||
40 | SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" | ||
41 | SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.service','',d)}" | ||
42 | SYSTEMD_AUTO_ENABLE_${PN} = "enable" | ||
43 | |||
44 | INITSCRIPT_PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${PN}','',d)}" | ||
45 | INITSCRIPT_NAME_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','docker.init','',d)}" | ||
46 | INITSCRIPT_PARAMS_${PN} = "defaults" | ||
47 | |||
48 | inherit useradd | ||
49 | USERADD_PACKAGES = "${PN}" | ||
50 | GROUPADD_PARAM_${PN} = "-r docker" | ||
51 | |||
52 | COMPATIBLE_HOST = "^(?!(qemu)?mips).*" | ||
53 | |||
54 | # DO NOT STRIP docker | ||
55 | INHIBIT_PACKAGE_STRIP = "1" | ||
56 | INSANE_SKIP_${PN} += "ldflags textrel" | ||