Commit de613736 authored by Simon Steinbeiß's avatar Simon Steinbeiß Committed by Andre Miranda
Browse files

xfce-build: Fix build with SELinux (!58)

If you're using SELinux locally you will have to pass the "z" parameter
to make the volume mounted in the container readable.
parent 2ae47732
Pipeline #13932 passed with stages
in 12 minutes and 43 seconds
......@@ -19,7 +19,8 @@ docker_pull () {
docker_run () {
# Run the build in the docker container
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $VOLUME:/tmp --env CFLAGS="${CFLAGS}" --env CONTAINER=$CONTAINER --env VERSION=$VERSION $CONTAINER:$VERSION /bin/bash -c "${BUILD_CMD}"
# That z parameter for volume is needed when SELinux is enabled
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $VOLUME:/tmp:z --env CFLAGS="${CFLAGS}" --env CONTAINER=$CONTAINER --env VERSION=$VERSION $CONTAINER:$VERSION /bin/bash -c "${BUILD_CMD}"
}
# Parse the commandline arguments
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment