summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-containers/docker/docker.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index a011366f..cd4d27b9 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -158,3 +158,21 @@ FILES_${PN} += "${systemd_unitdir}/system/* ${sysconfdir}/docker"
158PACKAGES =+ "${PN}-contrib" 158PACKAGES =+ "${PN}-contrib"
159FILES_${PN}-contrib += "${datadir}/docker/check-config.sh" 159FILES_${PN}-contrib += "${datadir}/docker/check-config.sh"
160RDEPENDS_${PN}-contrib += "bash" 160RDEPENDS_${PN}-contrib += "bash"
161
162# By the docker-packaging repository and https://docs.docker.com/engine/install/centos/#installation-methods
163# docker is packaged by most distros with a split between the engine and the CLI.
164#
165# We do the same here, by introducing the -cli package
166#
167# But to keep existing use cases working, we also create a RDEPENDS between the main
168# docker package (the engine) and the cli, so existing "docker" package installs will
169# continue to work the same way. To have separate and non-redepending packages created
170# set the DOCKER_UNIFIED_PACKAGE variable to False
171#
172PACKAGES =+ "${PN}-cli"
173FILES_${PN}-cli += "${bindir}/docker"
174
175# set to "False" if packages should be generated for the cli and engine, and
176# NOT rdepend to get a classic one-package install
177DOCKER_UNIFIED_PACKAGE ?= "True"
178RDEPENDS_${PN} += "${@bb.utils.contains("DOCKER_UNIFIED_PACKAGE", "True", "${PN}-cli", "", d)}"