File

tools/build-env/here.sh @ 13725:c51140dfbc4e 13.0

mod_invites: Fix storing --group (thanks lissine) This made it ignore `--group` completely, but if you incorrectly used `--group foo` it would store `groups=true`. Introduced in 9ba11ef91ce4
author Kim Alvefur <zash@zash.se>
date Mon, 17 Feb 2025 00:55:27 +0100
parent 13323:7bfd6db52528
line wrap: on
line source

#!/bin/sh -eux

tag="testing"

if [ "$#" -gt 0 ]; then
	tag="$1"
	shift
fi

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

$containerify run -it --rm \
	-v "$PWD:$PWD" \
	-w "$PWD" \
	-v "$HOME/.cache:$PWD/.cache" \
	--entrypoint /bin/bash \
	--userns=keep-id \
	--network \
	host "prosody.im/build-env:$tag" "$@"