docker: Add runtime provide for virtual-docker
PATCH 1/1 docker: Add runtime provide for virtual-docker
This patch enables successful runtime-dependency on the Docker preferred provider, as virtual/docker does not resolve. Doing so aligns with other virtual package providers (e.g. virtual-runc), and follows the Yocto Project documentation
(https://docs.yoctoproject.org/singleindex.html#virtual-runtime-provides).
--- recipes-containers/docker/docker.inc | 1 + 1 file changed, 1 insertion(+)
recipes-containers/docker/docker.inc +1 -0
@@ -32,6 +32,7 @@ RDEPENDS:${PN} += "virtual-containerd virtual-runc" RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" PROVIDES += "virtual/docker" +RPROVIDES:${PN} += "virtual-docker" # we want all the docker variant recpes to be installable via "docker" PACKAGE_NAME = "docker"
--
2.25.1
Quoted 6 lines · Richard Neill
This patch enables successful runtime-dependency on the Docker preferred provider, as virtual/docker does not resolve. Doing so aligns with other virtual package providers (e.g. virtual-runc), and follows the Yocto Project documentation
(https://docs.yoctoproject.org/singleindex.html#virtual-runtime-provides).
We don't have a virtual-docker rprovides by design. Since there are differences (historically) between docker-ce and docker-moby.
Your package lists and images should be referring to the one they want, not virtual-docker as a rdepends.
Bruce
Quoted 30 lines
Signed-off-by Richard Neill <[email protected]>--- recipes-containers/docker/docker.inc | 1 + 1 file changed, 1 insertion(+)recipes-containers/docker/docker.inc +1
-1@@ -32,6 +32,7 @@ RDEPENDS:${PN} += "virtual-containerd virtual-runc" RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" PROVIDES += "virtual/docker" +RPROVIDES:${PN} += "virtual-docker" # we want all the docker variant recpes to be installable via "docker" PACKAGE_NAME = "docker" --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7241): https://lists.yoctoproject.org/g/meta-virtualization/message/7241
Mute This Topic: https://lists.yoctoproject.org/mt/90888043/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi Bruce,
Quoted 19 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Bruce Ashfield via lists.yoctoproject.org
Sent: 04 May 2022 15:27
To: Richard Neill <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: Add runtime provide for virtual-dockerQuoted 6 lines · Richard Neill
This patch enables successful runtime-dependency on the Docker preferred provider, as virtual/docker does not resolve. Doing so aligns with other virtual package providers (e.g. virtual-runc), and follows the Yocto Project documentation
(https://docs.yoctoproject.org/singleindex.html#virtual-runtime-provides).
Quoted 6 lines
We don't have a virtual-docker rprovides by design. Since there are differences
(historically) between docker-ce and docker-moby.Your package lists and images should be referring to the one they want, not virtual-docker as a rdepends.
In this case having PREFERRED_PROVIDER_virtual/docker ?= "docker-ce" and PROVIDES += "virtual/docker" is useless?
--
Diego
Quoted 36 lines
Bruce
recipes-containers/docker/docker.inc RDEPENDS:${PN} += "virtual-containerd virtual-runc" · line 32
Quoted 13 lines
Signed-off-by Richard Neill <[email protected]>--- recipes-containers/docker/docker.inc | 1 + 1 file changed, 1 insertion(+)recipes-containers/docker/docker.inc +0
-0@@ -32,6 +32,7 @@ RDEPENDS:${PN} += "virtual-containerd virtual-runc" RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel- module-xt-masquerade"
Quoted 7 lines
recipes-containers/docker/docker.inc +1
-1PROVIDES += "virtual/docker" +RPROVIDES:${PN} += "virtual-docker" # we want all the docker variant recpes to be installable via "docker" PACKAGE_NAME = "docker" --Quoted 5 lines
2.25.1
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 35 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Diego Sueiro via lists.yoctoproject.org
Sent: 04 May 2022 15:31
To: [email protected]; Richard Neill <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: Add runtime provide for virtual-dockerHi Bruce,
Quoted 23 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Bruce Ashfield via lists.yoctoproject.org
Sent: 04 May 2022 15:27
To: Richard Neill <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: Add runtime provide for virtual-dockerQuoted 6 lines · Richard Neill
This patch enables successful runtime-dependency on the Docker preferred provider, as virtual/docker does not resolve. Doing so aligns with other virtual package providers (e.g. virtual-runc), and follows the Yocto Project documentation
(https://docs.yoctoproject.org/singleindex.html#virtual-runtime-provides).We don't have a virtual-docker rprovides by design. Since there are differences
(historically) between docker-ce and docker-moby.
Quoted 6 lines
Quoted 2 lines
Your package lists and images should be referring to the one they want, not virtual-docker as a rdepends.
In this case having
PREFERRED_PROVIDER_virtual/docker ?= "docker-ce"andPROVIDES += "virtual/docker"is useless?
Also, it seems that on the browser github.com/docker/docker.git (from docker-ce_git.bb) redirects to github.com/moby/moby.git. Does it not make sense to retire one of the recipes and just keep one? It will reduce maintenance effort and avoid confusions to which one should be used.
Diego
Quoted 37 lines
Quoted 37 lines
Bruce
recipes-containers/docker/docker.inc RDEPENDS:${PN} += "virtual-containerd virtual-runc" · line 32
Quoted 13 lines
Signed-off-by Richard Neill <[email protected]>--- recipes-containers/docker/docker.inc | 1 + 1 file changed, 1 insertion(+)recipes-containers/docker/docker.inc +0
-0@@ -32,6 +32,7 @@ RDEPENDS:${PN} += "virtual-containerd virtual-runc" RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel- module-xt-masquerade"
Quoted 7 lines
recipes-containers/docker/docker.inc +1
-1PROVIDES += "virtual/docker" +RPROVIDES:${PN} += "virtual-docker" # we want all the docker variant recpes to be installable via "docker" PACKAGE_NAME = "docker" --Quoted 5 lines
2.25.1
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Quoted 39 lines · Diego Sueiro
Quoted 39 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Diego Sueiro via lists.yoctoproject.org
Sent: 04 May 2022 15:31
To: [email protected]; Richard Neill <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: Add runtime provide for virtual-dockerHi Bruce,
Quoted 25 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Bruce Ashfield via lists.yoctoproject.org
Sent: 04 May 2022 15:27
To: Richard Neill <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: Add runtime provide for virtual-dockerQuoted 6 lines · Richard Neill
This patch enables successful runtime-dependency on the Docker preferred provider, as virtual/docker does not resolve. Doing so aligns with other virtual package providers (e.g. virtual-runc), and follows the Yocto Project documentation
(https://docs.yoctoproject.org/singleindex.html#virtual-runtime-provides).We don't have a virtual-docker rprovides by design. Since there are differences
(historically) between docker-ce and docker-moby.Your package lists and images should be referring to the one they want, not virtual-docker as a rdepends.
Quoted 7 lines
Quoted 3 lines
In this case having
PREFERRED_PROVIDER_virtual/docker ?= "docker-ce"andPROVIDES += "virtual/docker"is useless?Also, it seems that on the browser github.com/docker/docker.git (from docker-ce_git.bb) redirects to github.com/moby/moby.git. Does it not make sense to retire one of the recipes and just keep one? It will reduce maintenance effort and avoid confusions to which one should be used.
It has been doing that for quite some time.
We'll keep the two. There are some patch differences, and update cadences that differ between the two. docker has moved closer to moby, but we don't always want the docker-ce curated git hashes.
Bruce
Quoted 41 lines
Diego
Quoted 37 lines
Quoted 37 lines
Bruce
recipes-containers/docker/docker.inc RDEPENDS:${PN} += "virtual-containerd virtual-runc" · line 32
Quoted 13 lines
Signed-off-by Richard Neill <[email protected]>--- recipes-containers/docker/docker.inc | 1 + 1 file changed, 1 insertion(+)recipes-containers/docker/docker.inc +0
-0@@ -32,6 +32,7 @@ RDEPENDS:${PN} += "virtual-containerd virtual-runc" RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel- module-xt-masquerade"
Quoted 7 lines
recipes-containers/docker/docker.inc +1
-1PROVIDES += "virtual/docker" +RPROVIDES:${PN} += "virtual-docker" # we want all the docker variant recpes to be installable via "docker" PACKAGE_NAME = "docker" --Quoted 5 lines
2.25.1
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II