Skip to content

Instantly share code, notes, and snippets.

@barthy1
Last active March 1, 2017 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barthy1/7faef2d26c21cbb9e155f6739dd8a94a to your computer and use it in GitHub Desktop.
Save barthy1/7faef2d26c21cbb9e155f6739dd8a94a to your computer and use it in GitHub Desktop.
set -e -x
# etcd
apt-get update
apt-get install -y wget tar git zip
# download and install go-1.7-ppc64le.tar.gz from unicamp.br
wget https://storage.googleapis.com/golang/go1.8.linux-ppc64le.tar.gz
rm -rf /usr/local/go /usr/local/bin/go
tar xvfz go1.8.linux-ppc64le.tar.gz -C /usr/local
ln -s /usr/local/go/bin/go /usr/local/bin
#build consul
export GOPATH=$PWD
go get github.com/hashicorp/consul
cd bin
zip ../consul_0.7.2_linux_ppc64le.zip consul
#get consul_0.7.2_linux_ppc64le.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment