Make image a parameter to allow running with any image

This commit is contained in:
Adam Hill 2020-06-03 08:34:28 -05:00 committed by GitHub
parent 25d32da895
commit 3b8227c29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ trap "cleanup" INT TERM EXIT
# VOLUME TESTS
# Given...
IMAGE="pihole:v5.0-amd64" # The latest build test image (generic, non release/branch tag)
VOLUMES="$(mktemp -d)" # A fresh volume directory
IMAGE="${1:-pihole:v5.0-amd64}" # Default is latest build test image (generic, non release/branch tag)
VOLUMES="$(mktemp -d)" # A fresh volume directory
VOL_PH="$VOLUMES/pihole"
VOL_DM="$VOLUMES/dnsmasq.d"
tty -s && TTY='-t' || TTY=''