File

tools/build-env/build.sh @ 13550:eae0272b87e3

mod_pubsub: Use new metadata method No longer bypasses access control to retrieve this config subset, which is also explicitly named in the service config now.
author Kim Alvefur <zash@zash.se>
date Fri, 08 Nov 2024 02:12:45 +0100
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}"