Skip to contentSkip to conversation

docker: downgrade lxc/docker-registry/rt-tests to suggests

PATCH In review Fathi Boudra 2 participants 6 messages Feb 9, 2017 – Mar 14, 2017

lore
Share & tools
lore
#0 lore raw

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
index c208a02..81fd4d4 100644
@@ -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
#1 lore raw
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
---
 recipes-containers/docker/docker_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker/docker_git.bb +2 -2
index c208a02..81fd4d4 100644
@@ -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"
#2 lore raw
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
---
 recipes-containers/docker/docker_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker/docker_git.bb +2 -2
index c208a02..81fd4d4 100644
@@ -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"

#3 lore raw
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_RECOMMENDATIONS or PACKAGE_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
---
 recipes-containers/docker/docker_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker/docker_git.bb +2 -2
index c208a02..81fd4d4 100644
@@ -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"

#4 lore raw
In reply to Fathi Boudra

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.

---
 recipes-containers/docker/docker_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker/docker_git.bb +2 -3
index c208a02..81fd4d4 100644
@@ -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

#5 lore raw
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.

---
 recipes-containers/docker/docker_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker/docker_git.bb +2 -3
index c208a02..81fd4d4 100644
@@ -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