Created
December 28, 2020 20:44
-
-
Save ravitri/a9293a05d3490a65b8d05ee8be019427 to your computer and use it in GitHub Desktop.
Install etcd binary in local path
This file contains hidden or 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
| #!/bin/bash | |
| ETCD_VER=v3.4.14 | |
| # choose either URL | |
| #GOOGLE_URL=https://storage.googleapis.com/etcd | |
| GITHUB_URL=https://github.com/etcd-io/etcd/releases/download | |
| DOWNLOAD_URL=${GITHUB_URL} | |
| rm -f etcd-${ETCD_VER}-linux-amd64.tar.gz | |
| rm -rf etcd-download-test && mkdir -p etcd-download-test | |
| curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o etcd-${ETCD_VER}-linux-amd64.tar.gz | |
| tar xzvf etcd-${ETCD_VER}-linux-amd64.tar.gz -C etcd-download-test --strip-components=1 | |
| rm -f etcd-${ETCD_VER}-linux-amd64.tar.gz | |
| etcd-download-test/etcd --version | |
| etcd-download-test/etcdctl version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment