File

tools/build-env/here.sh @ 13373:c724b097ce90

lua-format: Check in defaults By starting with the built-in defaults, we get a nice history of differences from those as we figure out what settings suit us Sorted make comparisons easier.
author Kim Alvefur <zash@zash.se>
date Tue, 07 Jul 2020 18:30:15 +0200
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" "$@"