https://github.com/icemap/tidb-action
GitHub Action to setup a TiDB database by Docker
https://github.com/icemap/tidb-action
Last synced: about 1 month ago
JSON representation
GitHub Action to setup a TiDB database by Docker
- Host: GitHub
- URL: https://github.com/icemap/tidb-action
- Owner: Icemap
- Created: 2022-08-24T15:18:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T02:38:23.000Z (over 2 years ago)
- Last Synced: 2025-01-12T11:49:35.183Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh.md
Awesome Lists containing this project
README
# TiDB Action
[English](/README.md) | 中文
## 说明
- 这是一个非官方的 [GitHub Action](https://github.com/features/actions), 使用 Docker 部署一个 TiDB。
- 这个 Action 仅用于测试,如果你希望部署一个 TiDB 集群,请看[这里](https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup)。
- 这个库基于 [mirromutth/mysql-action](https://github.com/mirromutth/mysql-action) 开发。
## 使用方法
最简配置:
```yaml
steps:
- uses: Icemap/tidb-action@v1.1
```
全部配置:
```yaml
steps:
- uses: Icemap/tidb-action@v1.1
with:
port: 4001 # 可选,默认为 4000,TiDB 将要运行的端口
version: "v7.1.0" # 可选,默认为 v7.1.0,TiDB 运行的版本
config: |
[tikv-client.async-commit]
safe-window = 0
allowed-clock-drift = 0 # 可选,默认为空,在你需要特别的 TiDB 配置时,可将配置写在这里
inner port: 4001 # 可选,默认为 4000,指 TiDB 容器内部的映射位置,这是在你更改了配置中的 port 时才会用到的一个配置
```