tools/build-env/build.sh
author Kim Alvefur <zash@zash.se>
Sun, 10 Mar 2024 15:56:01 +0100
changeset 13463 790f60c0843b
parent 13407 0369f6986824
permissions -rwxr-xr-x
util.startup: Back out 598df17b8ebb Broke signal handling again, such that an early s2s connection results in libunbound catching signals and getting Prosody killed on e.g. SIGHUP This returns to the situation where prosody --daemonize does not respond to signals.

#!/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}"