Skip to content

Commit cdc2944

Browse files
committed
Dockerfile: install dnf5-plugins for copr support on Fedora 43+
On Fedora 43 dnf is dnf5, and the copr subcommand is provided by the dnf5-plugins package rather than dnf-plugins-core. Without it the ephemeral CI job fails with: Unknown argument "copr" for command "dnf5". Install dnf5-plugins with a fallback (|| true) so it's a no-op on CentOS Stream 9 where that package doesn't exist. Assisted-by: OpenCode (Claude Sonnet 4.5) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent d265493 commit cdc2944

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ COPY --from=build /out/ /
2727
RUN <<EORUN
2828
set -xeuo pipefail
2929
dnf -y install dnf-plugins-core
30+
# dnf5 (used on Fedora 43+) needs the copr plugin installed separately
31+
dnf -y install dnf5-plugins 2>/dev/null || true
3032
dnf -y copr enable rhcontainerbot/bootc centos-stream-9-x86_64
3133
dnf -y install bootc
3234
dnf clean all

0 commit comments

Comments
 (0)