You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2022/07/01 20:19:48 UTC

[activemq-artemis-native] 02/02: Fixing issue with mac not support :z on podman & docker

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-native.git

commit 7b6847546aa5419ba4a4fa7ba6982602c771c659
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Fri Jul 1 16:17:48 2022 -0400

    Fixing issue with mac not support :z on podman & docker
---
 scripts/compile-using-podman.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/compile-using-podman.sh b/scripts/compile-using-podman.sh
index b6f1013..1d7be87 100755
--- a/scripts/compile-using-podman.sh
+++ b/scripts/compile-using-podman.sh
@@ -26,7 +26,13 @@ else
 fi
 
 podman build -f src/main/docker/Dockerfile-centos -t artemis-native-builder .
-podman run --rm -v $PWD/target/lib:/work/target/lib:Z artemis-native-builder "$@"
+if [[ $OSTYPE == 'darwin'* ]]; then
+  # for some reason the :Z is not working on mac
+  podman run --rm -v $PWD/target/lib:/work/target/lib artemis-native-builder "$@"
+else
+  podman run --rm -v $PWD/target/lib:/work/target/lib:Z artemis-native-builder "$@"
+fi
+
 # to debug the image
 #podman run -it --rm -v $PWD/target/lib:/work/target/lib:Z artemis-native-builder "$@" bash
 chown -Rv $USER:$GID ./target/lib