aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2025-01-21 22:54:37 -0800
committerGitHub <noreply@github.com>2025-01-21 22:54:37 -0800
commite112fe1bf4fdaef1c9ab741590ac45b06dc01f76 (patch)
tree1b613edac03e6d1af2c9f9d6ae447ed6a30418f2 /test
parent049325e7734603e3c7ba05f26016beccafefb473 (diff)
Add support for podman (#343)
Helps to test #331. No reason that docker should work and podman shouldn't. ![image](https://github.com/user-attachments/assets/598c914d-09ca-4124-af43-49d52c230b43)
Diffstat (limited to 'test')
-rwxr-xr-xtest/formatters/build-image.bash10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/formatters/build-image.bash b/test/formatters/build-image.bash
index 2753ba9..fe30174 100755
--- a/test/formatters/build-image.bash
+++ b/test/formatters/build-image.bash
@@ -14,9 +14,13 @@ fi
cd "$(dirname "$0")"
-docker=(docker)
-if [[ "$OSTYPE" != darwin* ]] && [[ "$EUID" != 0 ]]; then
- docker=(sudo -E "${docker[@]}")
+if [[ -z "${USE_PODMAN:-}" ]]; then
+ docker=(docker)
+ if [[ "$OSTYPE" != darwin* ]] && [[ "$EUID" != 0 ]]; then
+ docker=(sudo -E "${docker[@]}")
+ fi
+else
+ docker=(podman)
fi
args=()