parent
08ad47fe1a
commit
28102e536b
15
README.md
15
README.md
|
@ -33,16 +33,7 @@ The latest release and setup instructions are available at [GitHub][github-relea
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
You can build etcd using the standard go workflow:
|
You can build etcd from source:
|
||||||
|
|
||||||
```sh
|
|
||||||
export GOPATH=/path/to/gopath
|
|
||||||
go get github.com/coreos/etcd
|
|
||||||
```
|
|
||||||
|
|
||||||
which will generate a binary at `$GOPATH/bin/etcd`
|
|
||||||
|
|
||||||
Or build from source using the provided `build` script, which generates a binary at `./bin/etcd`:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/coreos/etcd
|
git clone https://github.com/coreos/etcd
|
||||||
|
@ -50,7 +41,9 @@ cd etcd
|
||||||
./build
|
./build
|
||||||
```
|
```
|
||||||
|
|
||||||
_NOTE_: etcd requires go 1.2+. Please check your installation with
|
This will generate a binary called `./bin/etcd`.
|
||||||
|
|
||||||
|
_NOTE_: you need go 1.2+. Please check your installation with
|
||||||
|
|
||||||
```
|
```
|
||||||
go version
|
go version
|
||||||
|
|
17
build
17
build
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
ORG_PATH="github.com/coreos"
|
|
||||||
REPO_PATH="${ORG_PATH}/etcd"
|
|
||||||
|
|
||||||
if [ ! -h gopath/src/${REPO_PATH} ]; then
|
|
||||||
mkdir -p gopath/src/${ORG_PATH}
|
|
||||||
ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
|
|
||||||
fi
|
|
||||||
|
|
||||||
export GOBIN=${PWD}/bin
|
|
||||||
export GOPATH=${PWD}/gopath
|
|
||||||
|
|
||||||
eval $(go env)
|
|
||||||
|
|
||||||
echo "Building etcd"
|
|
||||||
go install ${REPO_PATH}
|
|
Loading…
Reference in New Issue