forked from YotpoLtd/metorikku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 1.15 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
# docker-compose up --exit-code-from influxdb_tester
version: '3'
services:
spark-submit:
image: metorikku/metorikku
environment:
- SUBMIT_COMMAND=spark-submit --class com.yotpo.metorikku.Metorikku metorikku.jar -c examples/influxdb/movies.yaml
entrypoint:
- /scripts/entrypoint-submit.sh
depends_on:
- spark-worker
- spark-master
spark-master:
image: metorikku/metorikku
entrypoint:
- /scripts/entrypoint-master.sh
logging:
driver: none
spark-worker:
image: metorikku/metorikku
entrypoint:
- /scripts/entrypoint-worker.sh
logging:
driver: none
influxdb:
image: influxdb:1.7.8
environment:
- INFLUXDB_ADMIN_USER=user
- INFLUXDB_ADMIN_PASSWORD=pass
- INFLUXDB_DB=test
- INFLUXDB_HTTP_ENABLED=true
- INFLUXDB_HTTP_AUTH_ENABLED=true
influxdb-tester:
image: buildpack-deps:stretch-curl
volumes:
- ./scripts:/scripts
- ./mocks:/mocks
command: /scripts/influx_test.sh
environment:
- MOCK_OUTPUT=/mocks/ratings.json
- QUERY=SELECT time, genre, metric, number_of_ratings FROM moviesAppInflux WHERE genre != ''