Ausführung von README.sh resilienter
authorKai Moritz <kai@juplo.de>
Sat, 24 Sep 2022 13:04:56 +0000 (15:04 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 24 Sep 2022 13:06:01 +0000 (15:06 +0200)
README.sh

index d2dccf8..573aba8 100755 (executable)
--- a/README.sh
+++ b/README.sh
@@ -10,13 +10,14 @@ then
 fi
 
 docker-compose up -d zookeeper kafka-1 kafka-2 kafka-3 cli
+docker-compose rm -svf producer
 
 if [[
   $(docker image ls -q $IMAGE) == "" ||
   "$1" = "build"
 ]]
 then
-  mvn install || exit
+  mvn clean install || exit
 else
   echo "Using image existing images:"
   docker image ls $IMAGE