зеркало из https://github.com/github/vitess-gh.git
Fix consul dependency issue for arm.
Make the booststrap.sh download the correct consul for aarch64 Change-Id: I7c96f7596f6c6a7496e34715d477185d55db5324 Signed-off-by: Jiamei.Xie <Jiamei.Xie@arm.com>
This commit is contained in:
Родитель
590a06f927
Коммит
86125be13c
10
bootstrap.sh
10
bootstrap.sh
|
@ -228,9 +228,15 @@ function install_consul() {
|
|||
Darwin) local platform=darwin;;
|
||||
esac
|
||||
|
||||
case $(arch) in
|
||||
aarch64) local target=arm64;;
|
||||
x86_64) local target=amd64;;
|
||||
*) echo "ERROR: unsupported architecture"; exit 1;;
|
||||
esac
|
||||
|
||||
download_url=https://releases.hashicorp.com/consul
|
||||
wget "${download_url}/${version}/consul_${version}_${platform}_amd64.zip"
|
||||
unzip "consul_${version}_${platform}_amd64.zip"
|
||||
wget "${download_url}/${version}/consul_${version}_${platform}_${target}.zip"
|
||||
unzip "consul_${version}_${platform}_${target}.zip"
|
||||
ln -snf "$dist/consul" "$VTROOT/bin/consul"
|
||||
}
|
||||
install_dep "Consul" "1.4.0" "$VTROOT/dist/consul" install_consul
|
||||
|
|
Загрузка…
Ссылка в новой задаче