Last active
March 1, 2017 12:43
-
-
Save barthy1/f10900580adc5cc974d8c621b36d984c 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 | |
# consul-template | |
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-template | |
export GOPATH=$PWD | |
go get github.com/hashicorp/consul-template | |
cd bin | |
zip ../consul-template_0.18.0_linux_ppc64le.zip consul-template | |
#get consul-template_0.18.0_linux_ppc64le.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment