aboutsummaryrefslogtreecommitdiff
path: root/BUILD.md
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-04-05 19:33:19 +0200
committerGitHub <noreply@github.com>2024-04-05 19:33:19 +0200
commit9a64c1885c07a933563b5d296d848af7ebb0a02d (patch)
tree4c29b5bfb885e82666121a5d3d8234baa2b3a09a /BUILD.md
parent1004c0670693dd113b8d2d8830bb55949367fcd9 (diff)
downloadNorthstarLauncher-9a64c1885c07a933563b5d296d848af7ebb0a02d.tar.gz
NorthstarLauncher-9a64c1885c07a933563b5d296d848af7ebb0a02d.zip
Add instructions to build with podman (#686)
Add instructions to build NorthstarLauncher with podman under SELinux enabled distros
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/BUILD.md b/BUILD.md
index 9bfdc46d..f0ed5e72 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -49,3 +49,13 @@ Developers who can work a command line may be interested in using [Visual Studio
* `docker build --rm -t northstar-build-fedora .`
* `docker run --rm -it -e CC=cl -e CXX=cl --mount type=bind,source="$(pwd)",destination=/build northstar-build-fedora cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -G "Ninja"`
* `docker run --rm -it -e CC=cl -e CXX=cl --mount type=bind,source="$(pwd)",destination=/build northstar-build-fedora cmake --build .`
+
+#### Podman
+
+When using [`podman`](https://podman.io/) instead of Docker on an SELinux enabled distro, make sure to add the `z` flag when mounting the directory to correctly label it to avoid SELinux denying access.
+
+As such the corresponding commands are
+
+* `podman build --rm -t northstar-build-fedora .`
+* `podman run --rm -it -e CC=cl -e CXX=cl --mount type=bind,source="$(pwd)",destination=/build,z northstar-build-fedora cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -G "Ninja"`
+* `podman run --rm -it -e CC=cl -e CXX=cl --mount type=bind,source="$(pwd)",destination=/build,z northstar-build-fedora cmake --build .`