forked from cfpb/grasshopper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test-harness.yaml
61 lines (56 loc) · 1.54 KB
/
docker-compose-test-harness.yaml
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
55
56
57
58
59
60
61
# production compose
# extend from docker-compose-common.yml
test_harness:
build: test-harness
volumes:
# FIXME: This should be a configurable using envvars
- ../grasshopper-qa:/opt/grasshopper-qa
environment: &grasshopper_envvars
# NOTE: All _PORT envvars MUST be set to override Compose-generated envvars of the same name
ELASTICSEARCH_CLUSTER: elasticsearch
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: "9300"
GRASSHOPPER_PARSER_HOST: parser
GRASSHOPPER_PARSER_PORT: 5000
HMDA_GEO_HOST: hmda_geo_api
HMDA_GEO_PORT: "8084"
links:
- hmda_geo_api
- parser
extra_hosts: &extra_hosts
- "elasticsearch:10.0.2.2"
entrypoint: "java -jar /opt/grasshopper-test_harness.jar"
command: "/opt/grasshopper-qa/data/in.csv /opt/grasshopper-qa/data/out.csv"
# The geocoder is not actually a dependency of test_harness, but it
# it is handy to have running for comparison against test_harness.
geocoder:
extends:
file: docker-compose-common.yml
service: geocoder
links:
- parser
extra_hosts: *extra_hosts
environment: *grasshopper_envvars
parser:
extends:
file: docker-compose-common.yml
service: parser
loader:
extends:
file: docker-compose-common.yml
service: loader
extra_hosts: *extra_hosts
hmda_geo_postgis:
build: ../hmda-geo/docker/postgis-tracts
ports:
- "5432:5432"
hmda_geo_api:
build: ../hmda-geo/api
ports:
- "8084:8084"
environment:
PG_HOST: hmda_geo_postgis
PG_USER: docker
PG_PASSWORD: docker
links:
- hmda_geo_postgis