From: Kai Moritz Date: Sat, 24 Sep 2022 13:04:56 +0000 (+0200) Subject: Ausführung von README.sh resilienter X-Git-Tag: rest-producer--json---lvm-2-tage--easy-path~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5568f529cceb4f2b12af05c51ffa0e25d0318a34;p=demos%2Fkafka%2Ftraining Ausführung von README.sh resilienter --- diff --git a/README.sh b/README.sh index 94a853a..9316233 100755 --- 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