-
Notifications
You must be signed in to change notification settings - Fork 155
/
docker-compose.yml
53 lines (53 loc) · 1.43 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
services:
spark-submit:
image: metorikku/metorikku:standalone
environment:
- SUBMIT_COMMAND=spark-submit --class com.yotpo.metorikku.Metorikku metorikku.jar -c examples/kafka/kafka_example.yaml
entrypoint:
- /scripts/entrypoint-submit.sh
depends_on:
- spark-master
- spark-worker
spark-master:
image: metorikku/metorikku:standalone
entrypoint:
- /scripts/entrypoint-master.sh
logging:
driver: none
spark-worker:
image: metorikku/metorikku:standalone
entrypoint:
- /scripts/entrypoint-worker.sh
logging:
driver: none
zookeeper:
image: wurstmeister/zookeeper
kafka:
image: wurstmeister/kafka
environment:
KAFKA_CREATE_TOPICS: "test:1:1,testAppendOutputMode:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://kafka:9092
depends_on:
- zookeeper
kafka-seed:
image: wurstmeister/kafka
volumes:
- ./scripts:/scripts
- ./mocks:/mocks
command: /scripts/kafka_seed.sh
environment:
TOPIC: test
SEED_FILE: /mocks/movies.jsonl
kafka-consume:
image: wurstmeister/kafka
volumes:
- ./scripts:/scripts
- ./mocks:/mocks
command: /scripts/consumer_test.sh
environment:
TOPIC: testAppendOutputMode
NUMBER_OF_EXPECTED_MESSAGES: 5
MOCK_OUTPUT: /mocks/movies.jsonl