Skip to content

tikv: update docker compose steps #641

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

Merged
merged 1 commit into from
Sep 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions tikv/deploy-tikv-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,29 @@ Make sure you have installed the following items on your machine:
git clone https://github.com/pingcap/tidb-docker-compose.git
```

2. Edit the `compose/values.yaml` file to configure `networkMode` to `host` and comment the TiDB section out.
2. Edit the `compose/values.yaml` file to configure `networkMode` to `host`.

```bash
cd tidb-docker-compose
vim compose/values.yaml
vim compose/values.yaml
```

3. Generate the `generated-docker-compose.yml` file.
3. Edit the `compose/values.yaml` file to comment the TiDB section out.

4. Change the Prometheus and Pushgateway addresses for the `host` network mode.

```bash
sed -i 's/pushgateway:9091/127.0.0.1:9091/g' config/*
sed -i 's/prometheus:9090/127.0.0.1:9090/g' config/*
```

5. Generate the `generated-docker-compose.yml` file.

```bash
helm template compose > generated-docker-compose.yml
```

4. Create and start the cluster using the `generated-docker-compose.yml` file.
6. Create and start the cluster using the `generated-docker-compose.yml` file.

```bash
docker-compose -f generated-docker-compose.yml pull # Get the latest Docker images
Expand Down