File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- version : ' 3.8'
2-
31# Minimal single-node TiDB for keploy e2e.
42#
53# Why this stack and not the full pingcap/tidb-docker-compose with PD + TiKV?
64# - The sample only exercises the SQL layer (MySQL wire protocol on :4000).
75# Coordination / storage flakiness in a 3-container topology adds CI noise
86# without buying us any matcher coverage.
9- # - `--store=unistore` keeps everything in a single process backed by an
10- # in-memory storage engine. Boot time is ~5s vs ~30-45s for a full PD+TiKV
11- # stack. Data is volatile, which is exactly what we want for keploy CI .
7+ # - The default `pingcap/tidb` entrypoint already runs in unistore ( single
8+ # process, in-memory) mode when no PD address is supplied, which is exactly
9+ # what we want for keploy CI: ~5s boot, volatile data, no extra containers .
1210#
1311# Pin: v8.5.x is the LTS line current at the time this sample was added.
1412# Bump as new LTS lines ship; the matcher behaviour we're testing has been
1513# stable across TiDB versions because it depends on the MySQL wire protocol.
1614services :
1715 tidb :
1816 image : pingcap/tidb:v8.5.6
19- command :
20- - --store=unistore
21- - --path=""
22- - --host=0.0.0.0
23- - --advertise-address=tidb
24- - --log-level=error
2517 ports :
2618 - " 4000:4000" # MySQL wire protocol
2719 - " 10080:10080" # status / readiness
28- healthcheck :
29- test : ["CMD-SHELL", "wget -qO- http://localhost:10080/status || exit 1"]
30- interval : 2s
31- timeout : 2s
32- retries : 30
You can’t perform that action at this time.
0 commit comments