From 703742d7cdaaf0f357e311b276684ed07a479dfb Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Wed, 20 Nov 2019 07:24:35 -0500 Subject: [PATCH] Update build.sh use buildah or podman instead of docker if available --- build.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 0ddeaf1fd..24735bfa3 100755 --- a/build.sh +++ b/build.sh @@ -17,7 +17,18 @@ SHA=$( git rev-parse --short HEAD ) git checkout $SHA REPO=quay.io/quay/quay:$SHA -docker build -t $REPO . + +# Use buildah or podman or docker +if [ -x /usr/bin/buildah ]; then + BUILDER="/usr/bin/buildah bud" +elif [ -x /usr/bin/podman ]; then + BUILDER="/usr/bin/podman build" +elif [ -x /usr/bin/docker ] ; then + BUILDER="/usr/bin/docker build" +fi +echo $BUILDER + +$BUILDER -t $REPO . echo $REPO git checkout "$NAME"