while ! [[ $(http 0:8081/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for requests..."; sleep 1; done
while ! [[ $(http 0:8082/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for adder..."; sleep 1; done
-echo 66 | http -v :8080/foo
-echo 666 | http -v :8080/bar
+docker-compose up -d peter ute franz beate klaus uschi
-sleep 5
+http -v :8082/results
+sleep 3
+http -v :8082/results
-http -v :8082/state
-http -v :8082/state/foo
-http -v :8082/state/bar
+docker-compose kill -s 9 adder
-docker-compose logs adder
+docker-compose up -d adder
+sleep 3
+docker-compose kill -s 9 peter ute franz beate klaus uschi
+http -v :8082/results
kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic in
kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic out
kafka-topics --bootstrap-server kafka:9092 --create --topic in --partitions 2 --replication-factor 3 --config min.insync.replicas=2
- kafka-topics --bootstrap-server kafka:9092 --create --topic out --partitions 1 --replication-factor 1
+ kafka-topics --bootstrap-server kafka:9092 --create --topic out --partitions 2 --replication-factor 3 --config min.insync.replicas=2
kafka-topics --bootstrap-server kafka:9092 --describe --topic in
kafka-topics --bootstrap-server kafka:9092 --describe --topic out
"
sumup.adder.client-id: adder
spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017
spring.data.mongodb.database: juplo
+
+ peter:
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v gateway:8080/peter;
+ sleep 1;
+ done
+ "
+ ute:
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v gateway:8080/ute;
+ sleep 2;
+ done
+ "
+ franz:
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v gateway:8080/franz;
+ sleep 3;
+ done
+ "
+ beate:
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v gateway:8080/beate;
+ sleep 4;
+ done
+ "
+ klaus:
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v gateway:8080/klaus;
+ sleep 5;
+ done
+ "
+ uschi:
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v gateway:8080/uschi;
+ sleep 6;
+ done
+ "