Added some story-tellers, based on Fortune
[demos/kafka/wordcount] / docker-compose.yml
index e07b0fc..b65635b 100644 (file)
@@ -80,6 +80,42 @@ services:
     depends_on:
       - kafka
 
+  bart:
+    image: juplo/wordcount--fortune:1.0.0
+    command: bash -c "
+      while [ true ];
+      do
+        /usr/games/fortune chalkboard
+          | head -1
+          | http -v recorder:8080/bart;
+        echo;
+        sleep 1;
+      done"
+
+  nerd:
+    image: juplo/wordcount--fortune:1.0.0
+    command: bash -c "
+      while [ true ];
+      do
+        /usr/games/fortune computers
+          | grep  -v '^[[:space:]]*--'
+          | http -v recorder:8080/nerd;
+        echo;
+        sleep 1;
+      done"
+
+  riddler:
+    image: juplo/wordcount--fortune:1.0.0
+    command: bash -c "
+      while [ true ];
+      do
+        /usr/games/fortune riddles
+          | awk -F':' '/^Q/ { print $$2 }'
+          | http -v recorder:8080/riddler;
+        echo;
+        sleep 1;
+      done"
+
   cli:
     image: confluentinc/cp-kafka:6.2.0
     command: bash -c "