Commit 8465ec8f authored by Richard Mortier's avatar Richard Mortier

dabuild: add support for `DABUILD_DOCKER` env var

Closes #45Signed-off-by: Richard Mortier's avatarRichard Mortier <mort@cantab.net>
parent 7645fda4
......@@ -32,6 +32,15 @@ case "$DABUILD_ARCH" in
"You may force it setting DABUILD_ARCH=\"xxx\" in invocation";;
esac
## allow setting of `docker` command by env variable
[ ! "$DABUILD_DOCKER" ] && DABUILD_DOCKER=docker
case "$DABUILD_DOCKER" in
podman|docker ) ;;
* ) die "Unsupported docker CLI replacement \"$DABUILD_DOCKER\" detected." \
"Expected one of: docker|podman"
;;
esac
## use branch to figure out most appropriate alpine version
if [ "$DABUILD_VERSION" ]; then
ABUILD_VERSION=$DABUILD_VERSION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment