Last active
March 1, 2017 12:44
-
-
Save barthy1/7faef2d26c21cbb9e155f6739dd8a94a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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