Skip to content

Commit 8f6852e

Browse files
committed
Make the build script work with SELinux
Generally speaking the scripts are executed from a user's homedirectory. By default the SELinux context will be: unconfined_u:object_r:user_home_t:s0 For podman to work with SELinux enable the context needs to be system_u:object_r:container_file_t:s0. Podman can do this automatically if the volume is made with the :z attribute.
1 parent d4d62af commit 8f6852e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ done
4444
mkdir -p logs
4545

4646
# You can add --no-cache as an option to podman_build below to rebuild all containers from scratch
47-
export podman_build="$podman build --build-arg img_version=${img_version} -v ${files_root}:/root/files"
47+
export podman_build="$podman build --build-arg img_version=${img_version} -v ${files_root}:/root/files:z"
4848

4949
$podman build -t godot-fedora:${img_version} -f Dockerfile.base . 2>&1 | tee logs/base.log
5050
$podman_build -t godot-export:${img_version} -f Dockerfile.export . 2>&1 | tee logs/export.log
@@ -65,7 +65,7 @@ if [ ! -e files/MacOSX${OSX_SDK}.sdk.tar.xz ] || [ ! -e files/iPhoneOS${IOS_SDK}
6565

6666
echo "Building OSX and iOS SDK packages. This will take a while"
6767
$podman_build -t godot-xcode-packer:${img_version} -f Dockerfile.xcode . 2>&1 | tee logs/xcode.log
68-
$podman run -it --rm -v ${files_root}:/root/files -e XCODE_SDKV="${XCODE_SDK}" -e OSX_SDKV="${OSX_SDK}" -e IOS_SDKV="${IOS_SDK}" godot-xcode-packer:${img_version} 2>&1 | tee logs/xcode_packer.log
68+
$podman run -it --rm -v ${files_root}:/root/files:z -e XCODE_SDKV="${XCODE_SDK}" -e OSX_SDKV="${OSX_SDK}" -e IOS_SDKV="${IOS_SDK}" godot-xcode-packer:${img_version} 2>&1 | tee logs/xcode_packer.log
6969
fi
7070

7171
$podman_build -t godot-osx:${img_version} -f Dockerfile.osx . 2>&1 | tee logs/osx.log

0 commit comments

Comments
 (0)