Created
February 28, 2017 16:39
-
-
Save barthy1/c4f144c65fb417cfea86f4c952e0a97e 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 | |
# download and install go-1.7-ppc64le.tar.gz from unicamp.br | |
wget ftp://ftp.unicamp.br/pub/ppc64el/ubuntu/14_04/cloud-foundry/go-1.7-ppc64le.tar.gz | |
rm -rf /usr/local/go /usr/local/bin/go | |
tar xvfz go-1.7-ppc64le.tar.gz -C /usr/local | |
ln -s /usr/local/go/bin/go /usr/local/bin | |
#build etcd | |
git clone https://github.com/coreos/etcd | |
cd etcd | |
./build | |
cd bin | |
mkdir etcd-v2.1.1-linux-amd64 | |
mv etcd etcdctl etcd-v2.1.1-linux-amd64 | |
tar zcvf ../../etcd-v3.1.2-linux-ppc64le.tar.gz etcd-v2.1.1-linux-amd64 | |
#get etcd-v3.1.2-linux-ppc64le.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment