-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
53 lines (51 loc) · 1.25 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
services:
api:
build:
context: .
volumes:
- ./app:/app
expose:
- "8000"
environment:
- PORT=8000
pact_verifier:
image: pactfoundation/pact-cli:latest
depends_on:
- api
environment:
- PACT_BROKER_BASE_URL
- PACT_BROKER_TOKEN
- PACT_BROKER_USERNAME
- PACT_BROKER_PASSWORD
- PACT_BROKER_PUBLISH_VERIFICATION_RESULTS
- PACT_URL
- GIT_COMMIT
- GIT_BRANCH
command: >
verify
${PACT_URL}
--provider-base-url http://api:8000
--provider pactflow-example-provider-python
--provider-app-version ${GIT_COMMIT}
--provider-version-branch ${GIT_BRANCH}
--wait 10
pact_verifier_native:
image: pactfoundation/pact-ref-verifier:latest
depends_on:
- api
environment:
- PACT_BROKER_BASE_URL
- PACT_BROKER_TOKEN
- PACT_BROKER_USERNAME
- PACT_BROKER_PASSWORD
- PACT_BROKER_PUBLISH_VERIFICATION_RESULTS
# - PACT_WEBHOOK_CALLBACK_URL=${PACT_URL}
- GIT_COMMIT
- GIT_BRANCH
command: >
--hostname api
--port 8000
--provider-name pactflow-example-provider-python
--loglevel info
--provider-version $GIT_COMMIT
--provider-branch $GIT_BRANCH