Expose build refs in .env, add build script, default GNUnet v0.26.1

This commit is contained in:
nocci 2025-12-11 15:40:50 +00:00
parent 6d482237ce
commit f8609c6634
5 changed files with 34 additions and 3 deletions

24
scripts/build-image.sh Normal file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "${ROOT_DIR}"
if [[ -f ".env" ]]; then
set -a
# shellcheck disable=SC1091
source ".env"
set +a
fi
IMAGE_TAG="${IMAGE_TAG:-taler-stack:build}"
docker build \
--build-arg GNUNET_REF="${GNUNET_REF:-v0.26.1}" \
--build-arg GNUNET_TARBALL_URL="${GNUNET_TARBALL_URL:-}" \
--build-arg EXCHANGE_REF="${EXCHANGE_REF:-master}" \
--build-arg MERCHANT_REF="${MERCHANT_REF:-master}" \
--build-arg LIBEUFIN_REF="${LIBEUFIN_REF:-master}" \
-t "${IMAGE_TAG}" .
echo "Built image ${IMAGE_TAG}"