X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;ds=inline;f=README.sh;h=b71031cc4c7f121954164374f2401200b6238a48;hb=150907d53cc99a98f4c888eacff892380ffd0feb;hp=3b0e897ccc2793bf0ca041fe3c5d2b3bfee93d32;hpb=5ad8c11b5c507e85b256888683b9508999e1b135;p=demos%2Fkafka%2Fdeduplication 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