File

tools/build-env/build.sh @ 13678:acb87cc2d48b 13.0

mod_authz_internal: Fix return values of secondary role management methods usermanager expects (role, err) and (ok, err)
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Feb 2025 15:30:23 +0000
parent 13403:0369f6986824
line wrap: on
line source

#!/bin/sh -eux

cd "$(dirname "$0")"

containerify="$(command -v podman || command -v docker)"

if [ -z "$containerify" ]; then
	echo "podman or docker required" >&2
	exit 1
fi

$containerify build -f ./Containerfile --squash \
	--build-arg os="${2:-debian}" \
	--build-arg dist="${1:-testing}" \
	-t "prosody.im/build-env:${1:-testing}"