Skip to content

Commit

Permalink
Merge pull request #893 from mccxj/docker
Browse files Browse the repository at this point in the history
docker-compose: move buildFrom to buildPath
  • Loading branch information
lilin90 committed Sep 27, 2018
2 parents 18cc13c + c33ebda commit 70d5614
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions op-guide/docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ category: deployment

PD,TiKV,TiDB 和 tidb-vision 支持从 GitHub 源码或本地文件构建 Docker 镜像,供开发测试使用。

- 如果希望从 GitHub 源码构建某个组件的镜像,需要将其 `image` 字段留空,然后设置其 `buildFrom``remote`
- 如果希望从本地已编译好的 binary 文件构建 PD,TiKV 或 TiDB 镜像,需要将其 `image` 字段留空,并将已编译好的 binary 拷贝到对应的 `pd/bin/pd-server``tikv/bin/tikv-server``tidb/bin/tidb-server`

- 如果希望从本地已编译好的 binary 文件构建 PD,TiKV 或 TiDB 镜像,需要将其 `image` 字段留空,然后设置其 `buildFrom``local`,并将已编译好的 binary 拷贝到对应的 `pd/bin/pd-server``tikv/bin/tikv-server``tidb/bin/tidb-server`

- 如果希望从本地构建 tidb-vision 镜像,需要将其 `image` 字段留空,然后设置其 `buildFrom``local`,并将 tidb-vision 项目拷贝到 `tidb-vision/tidb-vision`
- 如果希望从本地构建 tidb-vision 镜像,需要将其 `image` 字段留空,并将 tidb-vision 项目拷贝到 `tidb-vision/tidb-vision`

4. 生成 `docker-compose.yml` 文件

Expand Down

0 comments on commit 70d5614

Please sign in to comment.