1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 17:58:16 +00:00

tests: Exit non-zero if creation of nginx-proxy-tester image fails

This commit is contained in:
Richard Hansen 2023-01-16 23:49:32 -05:00
parent 55cfae9636
commit 569953521a

View File

@ -9,11 +9,14 @@
############################################################################### ###############################################################################
# Returns the absolute directory path to this script # Returns the absolute directory path to this script
DIR=$(cd "${0%/*}" && pwd) DIR=$(cd "${0%/*}" && pwd) || exit 1
# check requirements # check requirements
echo "> Building nginx-proxy-tester image..." echo "> Building nginx-proxy-tester image..."
docker build -t nginx-proxy-tester -f "${DIR}/requirements/Dockerfile-nginx-proxy-tester" "${DIR}/requirements" docker build -t nginx-proxy-tester \
-f "${DIR}/requirements/Dockerfile-nginx-proxy-tester" \
"${DIR}/requirements" \
|| exit 1
# run the nginx-proxy-tester container setting the correct value for the working dir in order for # run the nginx-proxy-tester container setting the correct value for the working dir in order for
# docker-compose to work properly when run from within that container. # docker-compose to work properly when run from within that container.