-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.integration.yml
More file actions
111 lines (100 loc) · 3.55 KB
/
Copy pathdocker-compose.integration.yml
File metadata and controls
111 lines (100 loc) · 3.55 KB
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
services:
postgresql:
image: postgres:15-alpine
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
POSTGRES_DB: temporal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temporal"]
interval: 3s
timeout: 5s
retries: 10
temporal:
image: temporalio/auto-setup:latest
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
depends_on:
postgresql:
condition: service_healthy
healthcheck:
# temporal CLI is bundled in the image; uses the container's bound IP
test: ["CMD-SHELL", "temporal operator cluster health --address $(hostname -i):7233 2>/dev/null | grep -q SERVING"]
interval: 5s
timeout: 5s
retries: 30
start_period: 30s
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
volumes:
- ./tests/integration/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
command: ["--config=/etc/otelcol-contrib/config.yaml"]
# The image is distroless (no shell/wget) so a Docker healthcheck is not
# possible. test_otel.php handles retry-until-ready internally.
pubsub-emulator:
image: gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators
command: ["gcloud", "beta", "emulators", "pubsub", "start", "--host-port=0.0.0.0:8085"]
firestore-emulator:
image: gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators
command: ["gcloud", "emulators", "firestore", "start", "--host-port=0.0.0.0:8080"]
spanner-emulator:
image: gcr.io/cloud-spanner-emulator/emulator:latest
# gRPC on 9010; the PHP tests retry until it accepts connections
bigtable-emulator:
image: gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators
command: ["gcloud", "beta", "emulators", "bigtable", "start", "--host-port=0.0.0.0:8086"]
datastore-emulator:
image: gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators
command: ["gcloud", "beta", "emulators", "datastore", "start", "--project=test-project", "--host-port=0.0.0.0:8081", "--no-store-on-disk", "--use-firestore-in-datastore-mode"]
etcd:
image: quay.io/coreos/etcd:v3.6.4
command: ["etcd", "--listen-client-urls=http://0.0.0.0:2379", "--advertise-client-urls=http://etcd:2379"]
test-ecosystem:
build:
context: .
dockerfile: tests/Dockerfile
target: test-integration-ecosystem
depends_on:
pubsub-emulator:
condition: service_started
firestore-emulator:
condition: service_started
spanner-emulator:
condition: service_started
bigtable-emulator:
condition: service_started
datastore-emulator:
condition: service_started
etcd:
condition: service_started
environment:
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
- FIRESTORE_EMULATOR_HOST=firestore-emulator:8080
- SPANNER_EMULATOR_HOST=spanner-emulator:9010
- BIGTABLE_EMULATOR_HOST=bigtable-emulator:8086
- DATASTORE_EMULATOR_HOST=datastore-emulator:8081
- ETCD_HOST=etcd:2379
test-temporal:
build:
context: .
dockerfile: tests/Dockerfile
target: test-integration-temporal
depends_on:
temporal:
condition: service_healthy
environment:
- TEMPORAL_ADDRESS=temporal:7233
test-otel:
build:
context: .
dockerfile: tests/Dockerfile
target: test-integration-otel
depends_on:
otel-collector:
condition: service_started
environment:
- OTEL_ADDRESS=otel-collector:4317