-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (70 loc) · 1.92 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.6"
services:
lpa-dashboard:
image: 311462405659.dkr.ecr.eu-west-1.amazonaws.com/sirius/sirius-lpa-dashboard:latest
build:
dockerfile: docker/sirius-lpa-dashboard/Dockerfile
depends_on:
- pact-stub
ports: ["8888:8888"]
environment:
PORT: 8888
SIRIUS_URL: http://pact-stub:8080
SIRIUS_PUBLIC_URL: http://localhost:8080
pact-stub:
image: pact-stub:latest
build: docker/pact-stub
ports: ["8080:8080"]
environment:
PACT_DIR: ./pacts
PORT: 8080
volumes:
- ./pacts:/app/pacts
puppeteer:
build: docker/puppeteer
depends_on:
- lpa-dashboard
- pact-stub
environment:
- LHCI_BUILD_CONTEXT__CURRENT_HASH=$CIRCLE_SHA1
- LHCI_BUILD_CONTEXT__GITHUB_REPO_SLUG=ministryofjustice/opg-sirius-lpa-dashboard
- LHCI_GITHUB_APP_TOKEN
go-lint:
image: golangci/golangci-lint:v1.63.3
working_dir: /go/src/app
volumes:
- ./:/go/src/app
- ./.cache/golangci-lint/v1.53.3:/root/.cache
command: golangci-lint run -v --timeout 5m
test-runner:
build:
context: docker/test-runner/
command: gotestsum --junitfile test-results/unit-tests.xml -- ./... -coverprofile=test-results/test-coverage.txt
working_dir: /go/src/app
volumes:
- ./:/go/src/app
- ./.gocache:/go/pkg/mod
pact:
image: pactfoundation/pact-cli:1
working_dir: /go/src/app
volumes:
- ./pacts:/go/src/app/pacts
cypress:
image: cypress/included:latest
command: run --browser chrome
entrypoint: cypress
depends_on:
- lpa-dashboard
- pact-stub
environment:
- CYPRESS_BASE_URL=http://lpa-dashboard:8888
- CYPRESS_VIDEO=false
working_dir: /e2e
volumes:
- ./:/e2e
trivy:
image: aquasec/trivy:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./.trivy-cache:/root/.cache
- ./test-results:/test-results