Diff

tools/build-env/build.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
child 13403:0369f6986824
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/build-env/build.sh	Sun Nov 12 13:02:38 2023 +0100
@@ -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}"
+