mirror of https://github.com/bjc/prosody
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
311 B
19 lines
311 B
#!/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" "$@"
|
|
|