docker: downgrade lxc/docker-registry/rt-tests to suggests
PATCH 1/1 docker: downgrade lxc/docker-registry/rt-tests to suggests
Regular users don't need lxc, docker-registry and rt-tests on the target. These tools aren't even needed or provide additional features when running docker at runtime. They also increase the size of the image uneccessarily.
--- recipes-containers/docker/docker_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker/docker_git.bb +2 -2
@@ -61,8 +61,8 @@ RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \ ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \ " RDEPENDS_${PN} += "containerd runc" -RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" -RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" +RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" +RSUGGESTS_${PN} = "lxc docker-registry rt-tests" DOCKER_PKG="github.com/docker/docker" do_configure[noexec] = "1"
Signature · 1 line
2.11.0
Quoted 3 lines · Fathi Boudra
Regular users don't need lxc, docker-registry and rt-tests on the target. These tools aren't even needed or provide additional features when running docker at runtime. They also increase the size of the image uneccessarily.
They can also just inhibit the installation of rrecommends (which is what I do).
But yes, I'm ok with making sure that these aren't slipping into more builds than necessary.
Bruce
Quoted 22 lines
Signed-off-by Fathi Boudra <[email protected]>--- recipes-containers/docker/docker_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-containers/docker/docker_git.bb +2
-2@@ -61,8 +61,8 @@ RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \ ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \ " RDEPENDS_${PN} += "containerd runc" -RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" -RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" +RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" +RSUGGESTS_${PN} = "lxc docker-registry rt-tests" DOCKER_PKG="github.com/docker/docker" do_configure[noexec] = "1"
Quoted 7 lines · Bruce Ashfield
Quoted 4 lines · Fathi Boudra
Regular users don't need lxc, docker-registry and rt-tests on the target. These tools aren't even needed or provide additional features when running docker at runtime. They also increase the size of the image uneccessarily.
Quoted 5 lines
They can also just inhibit the installation of rrecommends (which is what I do).
But yes, I'm ok with making sure that these aren't slipping into more builds than necessary.
yes, that's what I thought too but I think it's worth fixing to avoid everybody using docker to fallback using BAD_RECOMMENDATIONS, NO_RECOMMENDATIONS or PACKAGE_EXCLUDE.
Quoted 28 lines
Bruce
Quoted 25 lines
Signed-off-by Fathi Boudra <[email protected]>--- recipes-containers/docker/docker_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-containers/docker/docker_git.bb +2
-2@@ -61,8 +61,8 @@ RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \ ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \ " RDEPENDS_${PN} += "containerd runc" -RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" -RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" +RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" +RSUGGESTS_${PN} = "lxc docker-registry rt-tests" DOCKER_PKG="github.com/docker/docker"do_configure[noexec] = "1"
Quoted 12 lines · Fathi Boudra
Quoted 10 lines · Bruce Ashfield
Quoted 4 lines · Fathi Boudra
Regular users don't need lxc, docker-registry and rt-tests on the target. These tools aren't even needed or provide additional features when running docker at runtime. They also increase the size of the image uneccessarily.
They can also just inhibit the installation of rrecommends (which is what I do).
Quoted 6 lines
Quoted 2 lines
But yes, I'm ok with making sure that these aren't slipping into more builds than necessary.
yes, that's what I thought too but I think it's worth fixing to avoid everybody using docker to fallback using
BAD_RECOMMENDATIONS,NO_RECOMMENDATIONSorPACKAGE_EXCLUDE.
Agreed. It isn't obvious why lxc appears on the target when you just want docker :D
This is now merged.
Bruce
Quoted 29 lines
Quoted 29 lines
Bruce
Quoted 25 lines
Signed-off-by Fathi Boudra <[email protected]>--- recipes-containers/docker/docker_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-containers/docker/docker_git.bb +2
-2@@ -61,8 +61,8 @@ RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \ ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \ " RDEPENDS_${PN} += "containerd runc" -RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" -RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" +RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" +RSUGGESTS_${PN} = "lxc docker-registry rt-tests" DOCKER_PKG="github.com/docker/docker"do_configure[noexec] = "1"
Bruce, can you cherry-pick this patch in Morty branch? or do you prefer I send a patch for the branch?
Quoted 25 lines · Fathi Boudra
Regular users don't need lxc, docker-registry and rt-tests on the target. These tools aren't even needed or provide additional features when running docker at runtime. They also increase the size of the image uneccessarily.
Signed-off-by Fathi Boudra <[email protected]>--- recipes-containers/docker/docker_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-containers/docker/docker_git.bb +2
-3@@ -61,8 +61,8 @@ RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \ ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \ " RDEPENDS_${PN} += "containerd runc" -RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" -RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" +RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" +RSUGGESTS_${PN} = "lxc docker-registry rt-tests" DOCKER_PKG="github.com/docker/docker" do_configure[noexec] = "1" --
Quoted 2 lines
2.11.0
Cheers,
Fathi
Quoted 2 lines · Fathi Boudra
Bruce, can you cherry-pick this patch in Morty branch? or do you prefer I send a patch for the branch?
No need for a patch, this is definitely good enough!
They cherry pick and push is now done for morty.
Cheers,
Bruce
Quoted 33 lines · Fathi Boudra
Quoted 25 lines
Regular users don't need lxc, docker-registry and rt-tests on the target. These tools aren't even needed or provide additional features when running docker at runtime. They also increase the size of the image uneccessarily.
Signed-off-by Fathi Boudra <[email protected]>--- recipes-containers/docker/docker_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-containers/docker/docker_git.bb +2
-3@@ -61,8 +61,8 @@ RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \ ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \ " RDEPENDS_${PN} += "containerd runc" -RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" -RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" +RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat" +RSUGGESTS_${PN} = "lxc docker-registry rt-tests" DOCKER_PKG="github.com/docker/docker" do_configure[noexec] = "1" --Quoted 2 lines
2.11.0
Cheers,
Fathi