From: Kai Moritz Date: Sat, 10 Oct 2020 18:37:10 +0000 (+0200) Subject: Introduced a parameter to force a build in the helper-scirpt README.sh X-Git-Tag: streams-deduplicator-1.0.0~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1a499102e0b91be12efdc92cf8e906e704749ce7;p=demos%2Fkafka%2Fdeduplication Introduced a parameter to force a build in the helper-scirpt README.sh * Also added fast failure for build-errors --- diff --git a/README.sh b/README.sh index 3b0e897..b71031c 100755 --- a/README.sh +++ b/README.sh @@ -8,10 +8,10 @@ then exit fi -if [[ $(docker image ls -q juplo/deduplicator:streams) == "" ]] +if [[ $(docker image ls -q juplo/deduplicator:streams) == "" || "$1" = "build" ]] then - mvn package - docker build -t juplo/deduplicator:streams . + mvn package || exit + docker build -t juplo/deduplicator:streams . || exit else echo "Using image existing image:" docker image ls juplo/deduplicator:streams