Comparison

tools/build-env/here.sh @ 13323:7bfd6db52528

tools/build-env: Tools for building and testing in a container ./tools/build-env/build.sh Creates a container image based on Debian or Ubuntu ./tools/build-env/here.sh Starts a container and mounts in the current working directory, from where one can ./configure; make; make test etc
author Kim Alvefur <zash@zash.se>
date Sun, 12 Nov 2023 13:02:38 +0100
comparison
equal deleted inserted replaced
13322:28211ed70b4c 13323:7bfd6db52528
1 #!/bin/sh -eux
2
3 tag="testing"
4
5 if [ "$#" -gt 0 ]; then
6 tag="$1"
7 shift
8 fi
9
10 containerify="$(command -v podman docker)"
11
12 $containerify run -it --rm \
13 -v "$PWD:$PWD" \
14 -w "$PWD" \
15 -v "$HOME/.cache:$PWD/.cache" \
16 --entrypoint /bin/bash \
17 --userns=keep-id \
18 --network \
19 host "prosody.im/build-env:$tag" "$@"