mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
docker-compose: introduce pkgconfig docker-plugin
This allows docker-compose choose to be built as a docker plugin or a standalone binary, in the later case, docker-compose does not have to rdepends on docker, so nother container tools like podman can also use it. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
33a48549d6
commit
8891c1e02c
|
@ -34,7 +34,8 @@ COMPATIBLE_HOST = "^(?!mips).*"
|
||||||
|
|
||||||
do_configure[noexec] = "1"
|
do_configure[noexec] = "1"
|
||||||
|
|
||||||
PACKAGECONFIG ?= ""
|
PACKAGECONFIG ?= "docker-plugin"
|
||||||
|
PACKAGECONFIG[docker-plugin] = ",,,docker"
|
||||||
|
|
||||||
include relocation.inc
|
include relocation.inc
|
||||||
|
|
||||||
|
@ -63,16 +64,15 @@ do_compile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
#install -d "${D}${BIN_PREFIX}/bin"
|
if ${@bb.utils.contains('PACKAGECONFIG', 'docker-plugin', 'true', 'false', d)}; then
|
||||||
#install -m 755 "${S}/src/import/bin/docker-compose" "${D}${BIN_PREFIX}/bin"
|
install -d ${D}${nonarch_libdir}/docker/cli-plugins
|
||||||
|
install -m 755 ${S}/src/import/bin/docker-compose ${D}${nonarch_libdir}/docker/cli-plugins
|
||||||
# commonly installed to: /usr/lib/docker/cli-plugins/
|
else
|
||||||
install -d "${D}${nonarch_libdir}/docker/cli-plugins/"
|
install -d ${D}${bindir}
|
||||||
install -m 755 "${S}/src/import/bin/docker-compose" "${D}${nonarch_libdir}/docker/cli-plugins/"
|
install -m 755 ${S}/src/import/bin/docker-compose ${D}${bindir}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS:${PN} += " docker"
|
|
||||||
|
|
||||||
FILES:${PN} += " ${nonarch_libdir}/docker/cli-plugins/"
|
FILES:${PN} += " ${nonarch_libdir}/docker/cli-plugins/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user