#12105 Please provide a container image variant with `dnf5-plugins` in it
Opened a month ago by praiskup. Modified a month ago

The Mock utility uses the bootstrap_image feature to significantly speed up RPM package builds (instead of re-installing the bootstrap chroot from scratch using dnf). The tooling that's needed in Mock's bootstrap chroot is basically dnf5 builddep command (implies dnf5-plugins).

Currently, there are two variants: the Base (the default) container where we do not have dnf5-plugins, and the Toolbox variant (that contains dnf5-plugins, but contains just too many other packages).

Option1: Could we add dnf5-plugins into the Base container?

Option2: Could we have a new Variant called, e.g. MockBootstrap, pushed to the registry as fedora-mock-bootstrap:<version>? No problem to make it a separate layer on top of the Base image.

When? It would be nice to have a solution soon; dnf5 is the default in F41+, and the default Mock builds can be made significantly faster with this proposal.

  • If we cannot complete your request, what is the impact?
    Not sure - we will have to use the Toolbox container (if applicable), but Mock build would download image of size ~350MB instead of ~150MB

Possible Kiwi config patch:

Commit:     Pavel Raiskup <praiskup@redhat.com>
CommitDate: Wed May 15 08:32:33 2024 +0200

    Add dnf5-plugins into the generic container

    [root@ba1ab1388008 /]# dnf5 install dnf5-plugins  --setopt=install_weak_deps=False
    Total size of inbound packages is 2 MiB. Need to download 2 MiB.
    After this operation 13 MiB will be used (install 13 MiB, remove 0 B).

diff --git a/teams/cloud/container.xml b/teams/cloud/container.xml
index 130b1b2..7118848 100644
--- a/teams/cloud/container.xml
+++ b/teams/cloud/container.xml
@@ -143,6 +143,7 @@
                <package name="tar"/> <!-- https://bugzilla.redhat.com/show_bug.cgi?id=1409920 -->
                <package name="vim-minimal"/>
                <package name="dnf5"/>
+               <package name="dnf5-plugins"/>
                <package name="glibc-minimal-langpack"/>
                <package name="tzdata"/>
                <package name="xz"/>

Metadata Update from @jnsamyak:
- Issue tagged with: f41, medium-gain, medium-trouble

a month ago

Let's go with option 1. :)

I'm fine with option1 too.

Do you only need it in f41+

It's pretty small, so I suppose we could do f40 too, but would be nicer to just keep it to rawhide...

Log in to comment on this ticket.