-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do | ||
failures=$(docker inspect -f '{{ .State.ExitCode }}' test-app) | ||
if [[ "$failures" == "0" ]]; then | ||
echo -e "Successful load java data in loop ${i}" | ||
exit 0 | ||
fi | ||
sleep 3 | ||
done | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
kafka-topics --create --topic topicnamestrategy --zookeeper localhost:2181 --partitions 1 --replication-factor 1 | ||
kafka-topics --create --topic recordnamestrategy --zookeeper localhost:2181 --partitions 1 --replication-factor 1 | ||
kafka-topics --create --topic topicrecordnamestrategy --zookeeper localhost:2181 --partitions 1 --replication-factor 1 | ||
docker exec broker kafka-topics --create --topic topicnamestrategy --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1 | ||
docker exec broker kafka-topics --create --topic recordnamestrategy --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1 | ||
docker exec broker kafka-topics --create --topic topicrecordnamestrategy --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1 |