VTWO-14496 : continue configuring machine

This commit is contained in:
mbenabda
2019-06-20 20:56:42 +02:00
parent ee481cc7d4
commit 89fee4b7aa
12 changed files with 180 additions and 11 deletions

18
scripts/download_etcd_binaries Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
ETCD3_RELEASE_VERSION=$1
OUTPUT_DIR=$(realpath "$2")
tmp_dir=$(mktemp -d)
pushd "$tmp_dir" &> /dev/null
curl -sL "https://github.com/etcd-io/etcd/releases/download/$ETCD3_RELEASE_VERSION/etcd-$ETCD3_RELEASE_VERSION-linux-arm64.tar.gz" | tar -zxf -
mkdir -p $OUTPUT_DIR
mv etcd-$ETCD3_RELEASE_VERSION-linux-arm64/etcd $OUTPUT_DIR/
mv etcd-$ETCD3_RELEASE_VERSION-linux-arm64/etcdctl $OUTPUT_DIR/
popd &> /dev/null
rm -rf $tmp_dir