docsbuilder: Do not use SELinux isolation on Linux
This commit is contained in:
parent
a3b2d7aa6e
commit
b4d7dcd076
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue