From 59f2c7fe0c84391f55f04aebd171787c4405d635 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 29 Jan 2023 18:43:04 +0100 Subject: [PATCH] Beispiel in README.sh verbessert --- README.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.sh b/README.sh index 74eb764..ede8623 100755 --- a/README.sh +++ b/README.sh @@ -21,6 +21,8 @@ sleep 5 docker-compose start consumer-3 docker-compose stop consumer-1 +sleep 1 +docker-compose start consumer-2 sleep 5 docker-compose start consumer-1 @@ -29,7 +31,15 @@ sleep 5 docker-compose stop producer consumer-1 consumer-2 consumer-3 docker-compose logs consumer-1 -echo "Received messages for test/0" +echo "Messages received by consumer-1 for test/0" docker-compose logs consumer-1 | grep test/0 -echo "Received messages for test/1" +echo "Messages received by consumer-2 for test/0" +docker-compose logs consumer-2 | grep test/0 +echo "Messages received by consumer-3 for test/0" +docker-compose logs consumer-3 | grep test/0 +echo "Messages received by consumer-1 for test/1" docker-compose logs consumer-1 | grep test/1 +echo "Messages received by consumer-2 for test/1" +docker-compose logs consumer-2 | grep test/1 +echo "Messages received by consumer-3 for test/1" +docker-compose logs consumer-3 | grep test/1 -- 2.20.1