File

tools/build-env/here.sh @ 13614:601ec2c19180

modulemanager: Handle multiple digits in Lua version number Lua has a slow release cycle, but it would be nice if Prosody doesn't break unnecessarily with 5.10 :)
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Jan 2025 16:06:53 +0000
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" "$@"