commit 3d5cb984ed6683cfd112eb44fdfb37381c71851b
parent 51544bff2293f286a0405a2a8db8b1272a491513
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
Date: Mon, 10 Nov 2025 17:40:59 +0100
sandcastle-build: Allow passing arguments to podman build.
On my system this was needed to pass `--runtime=…`.
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/sandcastle-build b/sandcastle-build
@@ -3,11 +3,17 @@
set -eu
CONTAINERFILE="${1:-Dockerfile}"
+[ $# -gt 0 ] && shift
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"
+if [ ! -r "${CONTAINERFILE}" ] ; then
+ echo >&2 "Containerfile '${CONTAINERFILE}' not found or not readable."
+ exit 1
+fi
echo "Building with containerfile: ${CONTAINERFILE}"
# The nofile ulimit is required to prevent fakeroot from becoming sluggish.
-exec podman build --ulimit=nofile=2048:2048 -f "${CONTAINERFILE}" --target taler-final -t taler-base-all .
+exec podman build --ulimit=nofile=2048:2048 -f "${CONTAINERFILE}" \
+ --target taler-final -t taler-base-all "$@" .