From b239732046f737d51a4b004b30c4bd3699bf3ad2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 12 Nov 2023 13:02:38 +0100 Subject: 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 --- tools/build-env/build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tools/build-env/build.sh (limited to 'tools/build-env/build.sh') diff --git a/tools/build-env/build.sh b/tools/build-env/build.sh new file mode 100755 index 00000000..5f25155a --- /dev/null +++ b/tools/build-env/build.sh @@ -0,0 +1,11 @@ +#!/bin/sh -eux + +cd "$(dirname "$0")" + +containerify="$(command -v podman docker)" + +$containerify build -f ./Containerfile --squash \ + --build-arg os="${2:-debian}" \ + --build-arg dist="${1:-testing}" \ + -t "prosody.im/build-env:${1:-testing}" + -- cgit v1.2.3