From 1961ac675841022c49d3941014498163166fff8f Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sat, 7 Mar 2020 23:54:53 +0000 Subject: [PATCH] updated install_azure_cli.sh --- setup/install_azure_cli.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/install_azure_cli.sh b/setup/install_azure_cli.sh index 2d053d11..d577479a 100755 --- a/setup/install_azure_cli.sh +++ b/setup/install_azure_cli.sh @@ -62,7 +62,11 @@ EOF elif [ "$uname_s" = Darwin ]; then brew install azure-cli elif [ "$uname_s" = Linux ]; then - curl -L https://aka.ms/InstallAzureCli | bash + if type -P apk &>/dev/null; then + # only works on Alpine 3 - Alpine 2.x doesn't support --no-cache and nor does it have Python 3 package dependency which Azure CLI requires + apk add --no-cache curl python3 python3-dev alpine-sdk musl-dev libffi-dev openssl-dev + fi + yes | curl -L https://aka.ms/InstallAzureCli | bash echo echo "OS '$uname_s' is not Mac / Linux - not supported" exit 1