docsbuilder: Do not use SELinux isolation on Linux

This commit is contained in:
Timothée Ravier 2024-07-08 18:02:43 +02:00
commit b4d7dcd076

View file

@ -81,7 +81,7 @@ build () {
echo ""
echo "This build script is using Podman to run the build in an isolated environment."
echo ""
podman run --rm -it -v $(pwd):/antora:z $image $cmd --stacktrace
podman run --rm -it --security-opt label=disable -v $(pwd):/antora $image $cmd --stacktrace
elif [ -n "$(command -v docker)" ]; then
echo ""
@ -89,13 +89,13 @@ build () {
echo ""
if groups | grep -wq "docker"; then
docker run --rm -it -v $(pwd):/antora:z $image $cmd
docker run --rm -it --security-opt label=disable -v $(pwd):/antora $image $cmd
else
echo ""
echo "This build script is using $runtime to run the build in an isolated environment. You might be asked for your password."
echo "You can avoid this by adding your user to the 'docker' group, but be aware of the security implications. See https://docs.docker.com/install/linux/linux-postinstall/."
echo ""
sudo docker run --rm -it -v $(pwd):/antora:z $image $cmd
sudo docker run --rm -it --security-opt label=disable -v $(pwd):/antora $image $cmd
fi
else