forked from uber/baseweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (82 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
79
80
81
82
83
84
85
version: '2.3'
services:
# this spins up a server that serves the html/js/css for the e2e tests
e2e-server:
command: yarn e2e:serve
build:
dockerfile: e2e.Dockerfile
context: .
expose:
- 8080
healthcheck:
test:
[
'CMD-SHELL',
'curl -H "Accept: text/html" -f http://e2e-server:8080 || exit 1',
]
interval: 5s
timeout: 10s
retries: 5
environment:
- COMPOSE_HTTP_TIMEOUT
# tests if the e2e-server is ready to serve traffic
e2e-server-healthy:
build: .
links:
- e2e-server
depends_on:
e2e-server:
condition: service_healthy
# running the e2e tests in ci
e2e-test:
build: .
links:
- e2e-server
volumes:
- ./__artifacts__:/baseui/__artifacts__:delegated
- ./vrt/__image_snapshots__:/baseui/vrt/__image_snapshots__:delegated
depends_on:
- e2e-server-healthy
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_COMMIT
- BUILDKITE_PULL_REQUEST
- BUILDKITE_PULL_REQUEST_REPO
- GITHUB_BOT_AUTH_TOKEN
- GITHUB_BOT_EMAIL
- GITHUB_BOT_NAME
baseui:
build: .
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_PULL_REQUEST_REPO
- BUILDKITE_COMMIT
- BUILDKITE_MESSAGE
- GITHUB_AUTH_TOKEN
- ZEIT_NOW_TOKEN
- ZEIT_NOW_TEAM_ID
- ZEIT_NOW_PROJECT_ID
- FOSSA_API_KEY
- CF_ZONE_ID
- CF_ACCOUNT_ID
- CF_API_KEY
- CF_AUTH_EMAIL
- NPM_TOKEN
- NETLIFY_AUTH_TOKEN
- NETLIFY_SITE_ID
- AZURE_TOKEN
- WEBSITE_ENV