Compile etcd for use on Raspberry Pi

The most powerful feature of go, in my opinion, is the ability to cross-compile for other platforms. All Raspberry Pis are compatible with armv6, so we will use those settings.

git clone
cd etcd

export GOOS="linux"
export GOARCH="arm"
export CGO_ENABLED=0
export GOARM=6

go build -o "bin/etcd" .

go build -o "bin/etcdctl" ./etcdctl
categories: etcd | golang | raspberrypi |