-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from alvindera97/migrate-away-from-mocked-test…
…s-to-docker-powered-resources Migrate away from mocked tests to docker powered resources
- Loading branch information
Showing
10 changed files
with
179 additions
and
1,041 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
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,33 @@ | ||
services: | ||
zookeeper: | ||
image: zookeeper:3.7.2 | ||
ports: | ||
- "2181:2181" | ||
|
||
kafka: | ||
image: wurstmeister/kafka:2.13-2.8.1 | ||
ports: | ||
- "9092:9092" # OUTSIDE listener | ||
- "9093:9093" # INSIDE listener | ||
environment: | ||
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092 | ||
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
depends_on: | ||
- zookeeper | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
# Wait for Zookeeper to be ready | ||
while ! nc -z zookeeper 2181; do sleep 1; done; | ||
# Start Kafka server | ||
start-kafka.sh & | ||
# Wait for Kafka to be ready | ||
sleep 10; | ||
# Create topics | ||
# kafka-topics.sh --create --topic 342498f2-87b3-4e64-9325-eb70471623de --partitions 1 --replication-factor 1 --if-not-exists --bootstrap-server kafka:9093; | ||
# Keep the container running | ||
tail -f /dev/null |
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
Oops, something went wrong.