ICS producer-consumer sample app Helm chart
[nonrtric.git] / sample-services / ics-producer-consumer / start.sh
index 18317a0..94da48e 100755 (executable)
@@ -71,12 +71,13 @@ wait_for_container "kafka-consumer" "Started Application"
 echo "Kafka container is up and running. Starting producer and consumer..."
 space
 
+#Using the autostart flag in the application.yaml
 echo "Start 1 Producer on mytopic"
-curl -X GET http://localhost:8080/startProducer/mytopic
+#curl -X GET http://localhost:8080/startProducer/mytopic
 space
 
 echo "Start 1 Consumer on mytopic"
-curl -X GET http://localhost:8081/startConsumer/mytopic
+#curl -X GET http://localhost:8081/startConsumer/mytopic
 space
 
 sleep 10
@@ -170,6 +171,7 @@ containers=("kafka-producer" "kafka-consumer")
 for container in "${containers[@]}"; do
   if docker logs "$container" | grep -q ERROR; then
     echo "Errors found in logs of $container"
+    docker logs "$container" | grep ERROR
     echo "FAIL"
     exit 1
   else