From 6aaa13de7c4ae8a7c873b5f82d39f8622661373a Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Tue, 21 Jul 2026 11:08:14 +0200 Subject: [PATCH 1/2] chore: remove empty line in frontmatter of CLI index Signed-off-by: Matej Focko --- docs/cli/index.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/cli/index.md b/docs/cli/index.md index 8b5c8a7692..081e2c9ba4 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -3,7 +3,6 @@ title: Packit CLI date: 2019-07-09 chapter: false sidebar_position: 8 - --- # Packit CLI From 3c3e3b9790f69a40f2a23f4728625dcb9e35df40 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Tue, 21 Jul 2026 11:12:53 +0200 Subject: [PATCH 2/2] feat(cli): add docs for alternative platforms Fixes packit/packit#2741 Fixes PACKIT-5231 Signed-off-by: Matej Focko --- docs/cli/index.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/cli/index.md b/docs/cli/index.md index 081e2c9ba4..027cf4c499 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -70,6 +70,20 @@ If none of the above work for you, try running it in a container from our Fedora based image. It contains packit installed from `main` branch, i.e. the same you'd get by pip installing from GitHub. +::::tip + +When you wish to run mock build inside the container, you have to use a privileged +container, therefore add the `--privileged` switch to the `podman`. + +:::warning + +`docker run --privileged` is not the same as `podman run --privileged`. For more +information refer to the [Mock docs](https://rpm-software-management.github.io/mock/#mock-inside-podman-fedora-toolbox-or-docker-container). + +::: + +:::: + $ podman run -ti --rm -v $PWD:/src:z quay.io/packit/packit bash $ packit Usage: packit [OPTIONS] COMMAND [ARGS]... @@ -97,6 +111,19 @@ configuration files, like in the following examples: $ fkinit -u $ packit build in-koji +#### RPM build via mock + + $ podman run --privileged -ti --rm -v $PWD:/src/:z quay.io/packit/packit bash + $ packit build in-mock + +### Running on alternative platforms or architectures + +For running Packit CLI on the alternative platforms or architectures, +such as macOS or unsupported Linux distributions, it is recommened to use the +container method described above. + +For the macOS you can also use seamless virtualization via [Lima](https://lima-vm.io/). + ## Commands * [build](/docs/cli/build/)