-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
op-guide, tikv: update tidb and tikv docker compose steps #635
Changes from 1 commit
01fe0af
333a615
2184ed5
3ba490e
cf62a04
a36f6bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,8 +85,7 @@ To customize the cluster, you can edit the `docker-compose.yml` file directly. I | |
|
||
```bash | ||
cd tidb-docker-compose | ||
cp compose/values.yaml values.yaml | ||
vim values.yaml | ||
vi compose/values.yaml # custom the cluster size, docker image, port mapping and so on | ||
``` | ||
|
||
You can modify the configuration in `values.yaml`, such as the cluster size, TiDB image version, and so on. | ||
|
@@ -95,14 +94,13 @@ To customize the cluster, you can edit the `docker-compose.yml` file directly. I | |
|
||
For PD, TiKV, TiDB and tidb-vision, you can build Docker images from GitHub source code or local files for development and testing. | ||
|
||
- To build the image of a component from GitHub source code, you need to leave the `image` field empty and set `buildFrom` to `remote`. | ||
- To build PD, TiKV or TiDB images from the locally compiled binary file, you need to leave the `image` field empty, set `buildFrom` to `local` and copy the compiled binary file to the corresponding `pd/bin/pd-server`, `tikv/bin/tikv-server`, `tidb/bin/tidb-server`. | ||
- To build the tidb-vision image from local, you need to leave the `image` field empty, set `buildFrom` to `local` and copy the tidb-vision project to `tidb-vision/tidb-vision`. | ||
- To build PD, TiKV or TiDB images from the locally compiled binary file, you need to leave the `image` field empty and copy the compiled binary file to the corresponding `pd/bin/pd-server`, `tikv/bin/tikv-server`, `tidb/bin/tidb-server`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you need to comment the |
||
- To build the tidb-vision image from local, you need to leave the `image` field empty and copy the tidb-vision project to `tidb-vision/tidb-vision`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you need to comment the |
||
|
||
4. Generate the `docker-compose.yml` file. | ||
|
||
```bash | ||
helm template -f values.yaml compose > generated-docker-compose.yml | ||
helm template compose > generated-docker-compose.yaml | ||
``` | ||
|
||
5. Create and start the cluster using the generated `docker-compose.yml` file. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In other guides we use
vim
, for some users on some older systems they may getvi
instead ofvim
if they typevi
, which could lead to some confusion.