diff --git a/docs/cli/index.md b/docs/cli/index.md index 8b5c8a7692..027cf4c499 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 @@ -71,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]... @@ -98,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/)