-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
346 lines (345 loc) · 12.7 KB
/
docker-compose.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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
version: '3.8'
services:
bifrost_db:
image: mongo:4.4.2
container_name: 'bifrost_db'
restart: unless-stopped
volumes:
- ./bifrost_db:/data/db
ports:
- '27017:27017'
environment:
- MONGODB_DATA_DIR=/bifrost/bifrost_db
- MONGO_INITDB_DATABASE=/bifrost_test_db # NOTE: testing requires the word 'test' to be in the DB name
- MONGODB_LOG_DIR=/dev/null
networks:
- backend
bifrostlib:
build:
context: '.'
dockerfile: './lib/bifrostlib/Dockerfile'
args:
BUILD_ENV: dev
volumes:
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/lib/bifrostlib
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py" --directory="/bifrost/lib/bifrostlib" -- pytest
bifrost_run_launcher:
build:
context: '.'
dockerfile: './components/bifrost_run_launcher/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_run_launcher
volumes:
- ./components/bifrost_run_launcher:/bifrost/components/bifrost_run_launcher
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_run_launcher
entrypoint:
# bash
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_run_launcher" -- pytest
bifrost_min_read_check:
build:
context: '.'
dockerfile: './components/bifrost_min_read_check/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_min_read_check
volumes:
- ./components/bifrost_min_read_check:/bifrost/components/bifrost_min_read_check
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_min_read_check
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_min_read_check" -- pytest
bifrost_cge_resfinder:
build:
context: '.'
dockerfile: './components/bifrost_cge_resfinder/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_cge_resfinder
volumes:
- ./components/bifrost_cge_resfinder/bifrost_cge_resfinder:/bifrost/components/bifrost_cge_resfinder/bifrost_cge_resfinder
- ./components/bifrost_cge_resfinder/tests:/bifrost/components/bifrost_cge_resfinder/tests
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_cge_resfinder
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_cge_resfinder" -- pytest
bifrost_cge_virulencefinder:
build:
context: '.'
dockerfile: './components/bifrost_cge_virulencefinder/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_cge_virulencefinder
volumes:
- ./components/bifrost_cge_virulencefinder/bifrost_cge_virulencefinder:/bifrost/components/bifrost_cge_virulencefinder/bifrost_cge_virulencefinder
- ./components/bifrost_cge_virulencefinder/tests:/bifrost/components/bifrost_cge_virulencefinder/tests
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_cge_virulencefinder
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_cge_virulencefinder" -- pytest
bifrost_chewbbaca:
build:
context: '.'
dockerfile: './components/bifrost_chewbbaca/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_chewbbaca
volumes:
- ./components/bifrost_chewbbaca/bifrost_chewbbaca:/bifrost/components/bifrost_chewbbaca/bifrost_chewbbaca
- ./components/bifrost_chewbbaca/tests:/bifrost/components/bifrost_chewbbaca/tests
- ./components/bifrost_assemblatron:/bifrost/components/bifrost_assemblatron
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_chewbbaca
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_chewbbaca" -- pytest
bifrost_amrfinderplus:
build:
context: '.'
dockerfile: './components/bifrost_amrfinderplus/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_amrfinderplus
volumes:
- ./components/bifrost_amrfinderplus/bifrost_chewbbaca:/bifrost/components/bifrost_amrfinderplus/bifrost_amrfinderplus
- ./components/bifrost_amrfinderplus/tests:/bifrost/components/bifrost_amrfinderplus/tests
- ./components/bifrost_assemblatron:/bifrost/components/bifrost_assemblatron
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_amrfinderplus
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_amrfinderplus" -- pytest
bifrost_whats_my_species:
build:
context: '.'
dockerfile: './components/bifrost_whats_my_species/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_whats_my_species
FORCE_DOWNLOAD: 'false'
volumes:
- ./components/bifrost_whats_my_species:/bifrost/components/bifrost_whats_my_species
# Note the resources file is ignored by .dockerignore due to it's size which is why it's mounted again.
# - ./components/bifrost_whats_my_species/resources/:/bifrost/components/bifrost_whats_my_species/resources
# NOTE: Docker ignore not working with context currently https://github.com/docker/compose/issues/1607, current hack used instead
- $HOME/playground/bifrost/resources/bifrost_whats_my_species:/bifrost/components/bifrost_whats_my_species/resources
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_whats_my_species
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_whats_my_species" -- pytest
bifrost_assemblatron:
build:
context: '.'
dockerfile: './components/bifrost_assemblatron/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_assemblatron
FORCE_DOWNLOAD: 'false'
volumes:
- ./components/bifrost_assemblatron:/bifrost/components/bifrost_assemblatron
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_assemblatron
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_assemblatron" -- pytest
bifrost_ssi_stamper:
build:
context: '.'
dockerfile: './components/bifrost_ssi_stamper/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_ssi_stamper
FORCE_DOWNLOAD: 'false'
volumes:
- ./components/bifrost_ssi_stamper:/bifrost/components/bifrost_ssi_stamper
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_ssi_stamper
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_ssi_stamper" -- pytest
bifrost_seqsero:
build:
context: '.'
dockerfile: './components/bifrost_seqsero/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_seqsero
volumes:
- ./components/bifrost_seqsero:/bifrost/components/bifrost_seqsero
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_seqsero
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_seqsero" -- pytest
bifrost_enterobase:
build:
context: '.'
dockerfile: './components/bifrost_enterobase/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_enterobase
volumes:
- ./components/bifrost_enterobase:/bifrost/components/bifrost_enterobase
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
- ENTEROBASE_USERNAME
- ENTEROBASE_PASSWORD
- ENTEROBASE_SERVER
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_enterobase
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_enterobase" -- pytest
bifrost_salmonella_subspecies_dtartrate:
build:
context: '.'
dockerfile: './components/bifrost_salmonella_subspecies_dtartrate/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_salmonella_subspecies_dtartrate
volumes:
- ./components/bifrost_salmonella_subspecies_dtartrate:/bifrost/components/bifrost_salmonella_subspecies_dtartrate
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_salmonella_subspecies_dtartrate
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_salmonella_subspecies_dtartrate" -- pytest
bifrost_cge_mlst:
build:
context: '.'
dockerfile: './components/bifrost_cge_mlst/Dockerfile'
args:
BUILD_ENV: dev
BIFROST_COMPONENT_NAME: bifrost_cge_mlst
FORCE_DOWNLOAD: 'false'
volumes:
- ./components/bifrost_cge_mlst/bifrost_cge_mlst:/bifrost/components/bifrost_cge_mlst/bifrost_cge_mlst
- ./components/bifrost_cge_mlst/tests:/bifrost/components/bifrost_cge_mlst/tests
- ./lib/bifrostlib:/bifrost/lib/bifrostlib
- ./test_data/:/bifrost/test_data
- ./bifrost_db:/bifrost/bifrost_db
environment:
- BIFROST_DB_KEY=mongodb://bifrost_db:27017/bifrost_test_db
networks:
- backend
depends_on:
- bifrost_db
working_dir:
/bifrost/components/bifrost_cge_mlst
entrypoint:
watchmedo auto-restart --recursive --pattern="*.py;*.smk" --directory="/bifrost/components/bifrost_cge_mlst" -- pytest
networks:
backend:
driver: bridge
volumes:
bifrost_db:
driver: local