sandcastle-ng

Scripts for the deployment of Sandcastle (GNU Taler)
Log | Files | Refs | README

sandcastle-build (560B)


      1 #!/usr/bin/env bash
      2 
      3 set -eu
      4 
      5 CONTAINERFILE="${1:-Dockerfile}"
      6 [ $# -gt 0 ] && shift
      7 
      8 SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
      9 
     10 cd "$SCRIPT_DIR"
     11 
     12 if [ ! -r "${CONTAINERFILE}" ] ; then
     13     echo >&2 "Containerfile '${CONTAINERFILE}' not found or not readable."
     14     exit 1
     15 fi
     16 echo "Building with containerfile: ${CONTAINERFILE}"
     17 # The nofile ulimit is required to prevent fakeroot from becoming sluggish.
     18 exec podman build --ulimit=nofile=2048:2048 -f "${CONTAINERFILE}" \
     19      --target taler-final -t taler-base-all "$@" .