From a9157ce6d33931ef4b06c3538c52796d539a495b Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Mon, 30 Mar 2015 16:55:13 -0700 Subject: [PATCH] build: do not build internal debugging tool We are still playing around with the dump-log tool. Stop building it publicly until we are happy with its ux and functionality. --- build | 2 -- .../0_4_migration_tool.md => tools/etcd-migrate/README.md | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) rename Documentation/0_4_migration_tool.md => tools/etcd-migrate/README.md (95%) diff --git a/build b/build index adb38ac97..6702923c6 100755 --- a/build +++ b/build @@ -14,5 +14,3 @@ eval $(go env) # Static compilation is useful when etcd is run in a container CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' -o bin/etcd ${REPO_PATH} CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' -o bin/etcdctl ${REPO_PATH}/etcdctl -go build -o bin/etcd-migrate ${REPO_PATH}/tools/etcd-migrate -go build -o bin/etcd-dump-logs ${REPO_PATH}/tools/etcd-dump-logs diff --git a/Documentation/0_4_migration_tool.md b/tools/etcd-migrate/README.md similarity index 95% rename from Documentation/0_4_migration_tool.md rename to tools/etcd-migrate/README.md index 7ddbb1d00..d05947f73 100644 --- a/Documentation/0_4_migration_tool.md +++ b/tools/etcd-migrate/README.md @@ -15,7 +15,8 @@ etcd will detect 0.4.x data dir and update the data automatically (while leaving The tool can be run via: ```sh -./bin/etcd-migrate --data-dir= +./go build +./etcd-migrate --data-dir= ``` It should autodetect everything and convert the data-dir to be 2.0 compatible. It does not remove the 0.4.x data, and is safe to convert multiple times; the 2.0 data will be overwritten. Recovering the disk space once everything is settled is covered later in the document. @@ -44,4 +45,4 @@ If the conversion has completed, the entire cluster is running on something 2.0- rm -ri snapshot conf log ``` -It will ask before every deletion, but these are the 0.4.x files and will not affect the working 2.0 data. +It will ask before every deletion, but these are the 0.4.x files and will not affect the working 2.0 data. \ No newline at end of file