-
Notifications
You must be signed in to change notification settings - Fork 155
/
docker-compose.yml
54 lines (54 loc) · 1.72 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
54
# docker-compose up --exit-code-from elasticsearch_tester
version: '3'
services:
spark-submit:
image: metorikku/metorikku:spark2_standalone
environment:
- SUBMIT_COMMAND=spark-submit --packages commons-httpclient:commons-httpclient:3.0.1 --jars https://repo1.maven.org/maven2/org/elasticsearch/elasticsearch-hadoop/6.8.10/elasticsearch-hadoop-6.8.10.jar --class com.yotpo.metorikku.Metorikku metorikku.jar -c examples/elasticsearch/movies.yaml
entrypoint:
- /scripts/entrypoint-submit.sh
depends_on:
- spark-master
- spark-worker
spark-master:
image: metorikku/metorikku:spark2_standalone
entrypoint:
- /scripts/entrypoint-master.sh
logging:
driver: none
spark-worker:
image: metorikku/metorikku:spark2_standalone
entrypoint:
- /scripts/entrypoint-worker.sh
logging:
driver: none
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.10
environment:
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "cluster.routing.allocation.disk.threshold_enabled=false"
- network.publish_host=elasticsearch
- http.publish_host=elasticsearch
ulimits:
memlock:
soft: -1
hard: -1
elasticsearch-tester:
image: "circleci/buildpack-deps:stretch-curl"
volumes:
- ./scripts:/scripts
- ./mocks:/mocks
command: /scripts/elasticsearch_test.sh
environment:
- MOCK_OUTPUT=/mocks/movies.json
- INDEX_NAME=movies
- SORTBY=movieid
- DEBUG=true
elasticsearch-init:
image: "circleci/buildpack-deps:stretch-curl"
volumes:
- ./scripts:/scripts
command: /scripts/elasticsearch_init.sh
environment:
- INDEX_NAME=movies