From 410b9349fc03a6be497a070c5e00a7e91d633680 Mon Sep 17 00:00:00 2001 From: ZhiFeng Hu Date: Wed, 11 Nov 2015 09:19:16 +0800 Subject: [PATCH 1/3] Document add: how to using docker with tidb Signed-off-by: ZhiFeng Hu --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 71f9beb8de..deb8e24d6e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,26 @@ Read the [Roadmap](./ROADMAP.md). ## Quick start + +#### Run tidb with docker + +You can quickly test tidb with docker, the source repository contains Dockerfile, +You can build docker and then run an docker container with tidb +To install docker on your system, you can read the document on https://docs.docker.com/ + + +``` +git clone https://github.com/pingcap/tidb.git +cd tidb +docker build --rm -t tidb-server . +docker images +docker run -d -p 4000:4000 --name tidb-server tidb-server +``` +Then you can connect 127.0.0.1:4000 by mysql client or telnet. +The tidb is ready for serve. + +Please do not just put this on production environment, you need write your own configure replace the default configure. + #### __Pre-requirement__ Go environment. Currently a 64-bit version of go >= 1.5 is required. From e431344d54e2f4aedd83d1917b14e64cc8df8d44 Mon Sep 17 00:00:00 2001 From: ZhiFeng Hu Date: Wed, 11 Nov 2015 11:13:05 +0800 Subject: [PATCH 2/3] Fix typo errors for docker doc sections Thanks for @siddontang Signed-off-by: ZhiFeng Hu --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index deb8e24d6e..f06a821c8c 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Read the [Roadmap](./ROADMAP.md). #### Run tidb with docker You can quickly test tidb with docker, the source repository contains Dockerfile, -You can build docker and then run an docker container with tidb +You can build docker and then run a docker container with tidb. To install docker on your system, you can read the document on https://docs.docker.com/ @@ -51,9 +51,9 @@ docker images docker run -d -p 4000:4000 --name tidb-server tidb-server ``` Then you can connect 127.0.0.1:4000 by mysql client or telnet. -The tidb is ready for serve. +The tidb is ready for serving. -Please do not just put this on production environment, you need write your own configure replace the default configure. +Please do not just put this on production environment, you need to write your own config to replace the default config. #### __Pre-requirement__ From 50cec9436e0c16ebf9696aa12d4542c48e54c9b1 Mon Sep 17 00:00:00 2001 From: ZhiFeng Hu Date: Thu, 12 Nov 2015 08:04:19 +0800 Subject: [PATCH 3/3] Remove one line doc about replace config Signed-off-by: ZhiFeng Hu --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index f06a821c8c..53d98d5f59 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,6 @@ docker run -d -p 4000:4000 --name tidb-server tidb-server Then you can connect 127.0.0.1:4000 by mysql client or telnet. The tidb is ready for serving. -Please do not just put this on production environment, you need to write your own config to replace the default config. - #### __Pre-requirement__ Go environment. Currently a 64-bit version of go >= 1.5 is required.