From 12fb0fd3f5b86191a72f93841739d2c21cb44c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Wed, 19 Jul 2023 15:17:26 +0200 Subject: [PATCH] containers: add a workaround for missing SELinux on macOS with podman Hopefully, this is only a temporary solution as noted by podman upstream in /~https://github.com/containers/podman/issues/13631#issuecomment-1077643246. --- containers/scripts/deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/containers/scripts/deploy.sh b/containers/scripts/deploy.sh index 142055392..b149a7f91 100755 --- a/containers/scripts/deploy.sh +++ b/containers/scripts/deploy.sh @@ -62,6 +62,12 @@ test_build_env() ( # test if *-compose is installed command -v podman-compose + + if [[ -n "$IS_PODMAN" ]] && [[ "$OSTYPE" = *darwin* ]] && grep ':z$' compose.yaml; then + echo "podman on macOS does not support SELinux labeling at the moment." + echo "Please, remove them from compose.yaml and execute this script again." + exit 1 + fi )