diff options
author | 2018-09-03 12:55:39 +0800 | |
---|---|---|
committer | 2018-09-12 07:37:38 +0000 | |
commit | 88011d78be48349bf3d3bbea6c8166834b324bca (patch) | |
tree | beef4fe270c8f032916416ab7df4f4f1276a9d34 | |
parent | bba599d878dfffe96c2ef2ae96d23dc47627b656 (diff) |
update quickstart_k8s.sh to support arm64
Change-Id: Ibb4839c34f86f701c2938fafd32b2669b06235aa
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
-rwxr-xr-x | quickstart.sh | 7 | ||||
-rwxr-xr-x | quickstart_k8s.sh | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/quickstart.sh b/quickstart.sh index db56ee2f..f872abfd 100755 --- a/quickstart.sh +++ b/quickstart.sh @@ -7,6 +7,13 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## + +COMPASS_ARCH=$(uname -m) +if [ "$COMPASS_ARCH" = "aarch64" ]; then + echo "Not support aarch64, please try quickstart_k8s.sh instead" + exit 1 +fi + sudo apt-get update sudo apt-get install -y git diff --git a/quickstart_k8s.sh b/quickstart_k8s.sh index 2745cdb9..49a8432c 100755 --- a/quickstart_k8s.sh +++ b/quickstart_k8s.sh @@ -7,6 +7,15 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## + +COMPASS_ARCH=$(uname -m) +if [ "$COMPASS_ARCH" = "aarch64" ]; then + echo "Running on aarch64 host, make sure your jump host is configured okay" + echo "Please reference docs/release/installation/k8s-deploy-arm.rst" + export ADAPTER_OS_PATTERN='(?i)CentOS-7.*arm.*' + SCENARIO=${SCENARIO:-k8-nosdn-nofeature-noha.yml} +fi + sudo apt-get update sudo apt-get install -y git |