From 86f06159653b0336212a74e8119bfac6448fc462 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Fri, 10 May 2024 14:49:57 +0200 Subject: [PATCH] Add script to run tests on mac with podman --- test-on-mac-with-podman.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test-on-mac-with-podman.sh diff --git a/test-on-mac-with-podman.sh b/test-on-mac-with-podman.sh new file mode 100755 index 0000000..3f8d94a --- /dev/null +++ b/test-on-mac-with-podman.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# As documented here https://java.testcontainers.org/supported_docker_environment/#podman + + export DOCKER_HOST=unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}') + export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock + export TESTCONTAINERS_RYUK_DISABLED=true + + ./gradlew --info test \ No newline at end of file