-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (55 loc) · 1.29 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
55
56
57
version: "3.0"
services:
test-coverage:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ./:/work
working_dir: /work
entrypoint:
- /bin/sh
- -c
- |
set -e
pytest --cov=`pwd` -vv
coverage xml
coverage html
coverage report -m
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ~/.aws:/aws
environment:
- AWS_DEFAULT_PROFILE
- AWS_PROFILE=$AWS_DEFAULT_PROFILE
- AWS_SHARED_CREDENTIALS_FILE=/aws/credentials
- AWS_CONFIG_FILE=/aws/config
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
- AWS_DEFAULT_REGION
- AWS_CONSOLE_URL
- AWS_REGION=$AWS_DEFAULT_REGION
- AWS_SDK_LOAD_CONFIG=1
producer:
build:
context: sample/producer
dockerfile: Dockerfile
volumes:
- ~/.aws:/aws
environment:
- AWS_DEFAULT_PROFILE
- AWS_PROFILE=$AWS_DEFAULT_PROFILE
- AWS_SHARED_CREDENTIALS_FILE=/aws/credentials
- AWS_CONFIG_FILE=/aws/config
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
- AWS_DEFAULT_REGION
- AWS_CONSOLE_URL
- AWS_REGION=$AWS_DEFAULT_REGION
- AWS_SDK_LOAD_CONFIG=1
- QUEUE_NAME=test