docs: Fix docker build instructions

fixes #752
This commit is contained in:
Julian Rüth
2024-04-03 00:59:56 +03:00
parent ede5db18d7
commit 22873b3c3f

View File

@@ -101,13 +101,13 @@ This method avoids polluting your workstation with the dependencies for the
build. Here is an example using Fedora, Podman and Buildah: build. Here is an example using Fedora, Podman and Buildah:
```shell ```shell
git clone --recursive https://github.com/purpleidea/mgmt/ ~/mgmt/ git clone --recursive https://github.com/purpleidea/mgmt/
cd ~/mgmt/docker cd mgmt
buildah build -f Dockerfile-fedora.build -t mgmt_build docker build -t mgmt -f docker/Dockerfile .
podman run -d -it --name mgmt_build localhost/mgmt_build docker run --rm --entrypoint cat mgmt mgmt > mgmt
podman cp mgmt_build:/src/github.com/purpleidea/mgmt/mgmt /tmp/mgmt chmod +x mgmt
sudo mv /tmp/mgmt /usr/local/bin # be sure this is in your $PATH ./mgmt --version
sudo chown root:root /usr/local/bin/mgmt # you could now copy the mgmt binary somewhere into your $PATH, e.g., /usr/local/bin/ to make it accessible from anywhere
``` ```
## Running mgmt ## Running mgmt