-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (126 loc) · 3.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
135 lines (126 loc) · 3.43 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# SPDX-FileCopyrightText: 2021 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
services:
tol-sdk-python-unit-test:
build: .
container_name: unit-test
command: pytest -v unit
tol-sdk-python-db:
image: postgres:14
container_name: db
# Useful when debugging to show all SQL statements in the log:
# command: ["postgres", "-c", "log_statement=all"]
# Trigger auto-vacuum (which runs ANALYZE) more frequently:
command: ["postgres", "-c", "autovacuum_naptime=5"]
environment:
- POSTGRES_USER=test-user
- POSTGRES_PASSWORD=test-password
- POSTGRES_DB=test-db
ports:
- 5556:5432
networks:
- api-base-test-network
tol-sdk-python-elastic:
image: elasticsearch:7.17.28
container_name: elastic
ports:
- 9200:9200
environment:
- discovery.type=single-node
networks:
- api-base-test-network
healthcheck:
test: curl -f http://localhost:9200/_cluster/health || exit 1
interval: 1s
retries: 120
tol-sdk-python-system-test:
build: .
container_name: system-test
command: pytest -vvvx system
environment:
- DB_URI=postgresql://test-user:test-password@tol-sdk-python-db:5432/test-db
- ELASTIC_URI=http://tol-sdk-python-elastic:9200
- ELASTIC_USER=elastic
# needs to be set, but doesn't matter at all
- ELASTIC_PASSWORD=anything
- ELASTIC_INDEX_PREFIX=test
depends_on:
- system-test-api-elastic
- system-test-api-sql
networks:
- api-base-test-network
system-test-api-elastic:
build: .
container_name: api-elastic
command: flask --app elastic run --host 0.0.0.0 --debugger
working_dir: /test/system/data_source/services
environment:
- ELASTIC_URI=http://tol-sdk-python-elastic:9200
- ELASTIC_USER=elastic
# needs to be set, but doesn't matter at all
- ELASTIC_PASSWORD=anything
- ELASTIC_INDEX_PREFIX=test-api
- FLASK_DEBUG=1
depends_on:
tol-sdk-python-elastic:
condition: service_healthy
networks:
- api-base-test-network
ports:
- '9023:5000'
system-test-api-sql:
build: .
container_name: api-sql
command: flask --app sql run --host 0.0.0.0 --debugger
working_dir: /test/system/data_source/services
environment:
- DB_URI=postgresql://test-user:test-password@tol-sdk-python-db:5432/test-db
- FLASK_DEBUG=1
networks:
- api-base-test-network
depends_on:
- tol-sdk-python-db
ports:
- '9021:5000'
tol-sdk-python-integration-test:
build: .
container_name: integration-test
command: pytest -vvvx integration
environment:
- GOOGLE_CLIENT_SECRETS
- JIRA_URL
- JIRA_API_KEY
- GOAT_URL
- GOAT_API_PATH
- MLWH_URI
- BENCHLING_URL
- BENCHLING_API_KEY
- BENCHLING_REGISTRY_ID
- BENCHLING_PROJECT
- BENCHLING_PROJECT_ID
- BENCHLING_CASM_PROJECT_ID
- BENCHLING_FOLDER
- ENA_URL
- ENA_USER
- ENA_PASSWORD
- ENA_CONTACT_NAME
- ENA_CONTACT_EMAIL
- PORTAL_URL
- PORTAL_API_PATH
- PORTAL_API_KEY
- STS_URL
- STS_API_KEY
- BOLD_API_KEY
- S3_URI
- S3_ACCESS_KEY
- S3_SECRET_KEY
- S3_SECURE
- ELASTIC_URI
- ELASTIC_USER
- ELASTIC_PASSWORD
- ELASTIC_INDEX_PREFIX
networks:
- api-base-test-network
networks:
api-base-test-network: {}