#!/bin/bash MOUNT_INPUTS=type=bind,source=../test-inputs,destination=/var/gavo-inputs die() { echo $@ exit 1 } function make-containerfile() { sed -e "s/#ROOT_IMAGE#/$ROOT_IMAGE/;\ s/#SOURCES_LIST#/$SOURCES_LIST/;\ s/#PGVERSION#/$PGVERSION/" < Containerfile.in >Containerfile } function run-current() { eatmydata podman build -t=current-test . \ || die "*** Container build failed" eatmydata podman run --volumepath=$VOLUMEPATH --mount="$MOUNT_INPUTS" -it current-test } ROOT_IMAGE=debian:stable SOURCES_LIST=sources.list.stable PGVERSION=15 make-containerfile run-current