Builds docker image containing Transaction Inspector application installation, ready to run. To spawn it, just run a container and map port 8080 to the host.
OPTIONS:
--help|-h|-? Display this help screen and exit
--progress=TYPE Determines how to display build progress (default: 'auto')
--push Allows to automatically push built image to the registry
EOF
}
PROGRESS_DISPLAY=${PROGRESS_DISPLAY:-"auto"}
IMAGE_OUTPUT="--load"
BUILD_IMAGE_TAG=""
REGISTRY=""
SRCROOTDIR=""
while[$# -gt 0 ];do
case"$1"in
--help|-h|-?)
print_help
exit 0
;;
--progress=*)
arg="${1#*=}"
PROGRESS_DISPLAY="$arg"
;;
--push)
IMAGE_OUTPUT="--push"
;;
*)
if[-z"$BUILD_IMAGE_TAG"];
then
BUILD_IMAGE_TAG="${1}"
elif[-z"$SRCROOTDIR"];
then
SRCROOTDIR="${1}"
elif[-z"$REGISTRY"];
then
REGISTRY=${1}
else
echo"ERROR: '$1' is not a valid option/positional argument"
echo
print_help
exit 2
fi
;;
esac
shift
done
_TST_IMGTAG=${BUILD_IMAGE_TAG:?"Missing arg #1 to specify built image tag"}
_TST_SRCDIR=${SRCROOTDIR:?"Missing arg #2 to specify source directory"}
_TST_REGISTRY=${REGISTRY:?"Missing arg #3 to specify target container registry"}
# Supplement a registry path by trailing slash (if needed)