-
Notifications
You must be signed in to change notification settings - Fork 896
Expand file tree
/
Copy pathdocker-compose-local-history-simulation.yml
More file actions
87 lines (86 loc) · 2.02 KB
/
docker-compose-local-history-simulation.yml
File metadata and controls
87 lines (86 loc) · 2.02 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
services:
cassandra:
image: cassandra:4.1.1
environment:
- "MAX_HEAP_SIZE=256M"
- "HEAP_NEWSIZE=128M"
ports:
- "9042:9042"
networks:
services-network:
aliases:
- cassandra
healthcheck:
test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"]
interval: 15s
timeout: 30s
retries: 10
prometheus:
image: prom/prometheus:v3.0.1
volumes:
- ./prometheus:/etc/prometheus
command:
- '--config.file=/etc/prometheus/history_simulation_prometheus.yml'
ports:
- '9090:9090'
networks:
services-network:
aliases:
- prometheus
grafana:
image: grafana/grafana:11.4.0
volumes:
- ./grafana:/etc/grafana
user: "1000"
depends_on:
- prometheus
ports:
- '3000:3000'
networks:
services-network:
aliases:
- grafana
history-simulator:
build:
context: ../../
dockerfile: ./docker/github_actions/Dockerfile${DOCKERFILE_SUFFIX}
command:
- /bin/sh
- -e
- -c
- >
go test -timeout 600s
-run ^TestHistorySimulation.*$
-count 1
-v
github.com/uber/cadence/simulation/history
| tee test.log
environment:
- "HISTORY_LOG_EVENTS=true"
- "CASSANDRA_HOST=cassandra"
- "CASSANDRA=1"
- "CASSANDRA_SEEDS=cassandra"
depends_on:
prometheus:
condition: service_started
grafana:
condition: service_started
cassandra:
condition: service_healthy
ports: # expose prometheus ports so they can be scraped
- '8306:8306'
- '8307:8307'
- '8308:8308'
- '8309:8309'
volumes:
- ../../:/cadence
- /cadence/.build/ # ensure we don't mount the build directory
- /cadence/.bin/ # ensure we don't mount the bin directory
networks:
services-network:
aliases:
- cadence
networks:
services-network:
name: services-network
driver: bridge