Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 47d7f82

Browse files
authored
Update AZ CLI to latest (#1698)
1 parent 0cb64d7 commit 47d7f82

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Dockerfile

+8-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ ENV GO_VERSION 1.8.3
1010
RUN wget -q https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz \
1111
&& tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && rm go${GO_VERSION}.linux-amd64.tar.gz
1212

13-
# See: https://github.com/Azure/azure-cli/blob/master/packaged_releases/bundled/README.md#using-the-bundled-installer
14-
ENV AZURE_CLI_BUNDLE_VERSION 0.2.10-1
15-
RUN mkdir /tmp/azurecli \
16-
&& curl "https://azurecliprod.blob.core.windows.net/bundled/azure-cli_bundle_${AZURE_CLI_BUNDLE_VERSION}.tar.gz" > /tmp/azurecli/azure-cli_bundle.tar.gz \
17-
&& (cd /tmp/azurecli \
18-
&& tar -xvzf azure-cli_bundle.tar.gz \
19-
&& azure-cli_bundle_*/installer --bin-dir /usr/local/bin) \
20-
&& rm -rf /tmp/azurecli
21-
2213
RUN curl -fsSL https://get.docker.com/ | sh
2314

2415
ENV KUBECTL_VERSION 1.7.5
@@ -45,4 +36,12 @@ RUN echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-releas
4536
&& apt-get update \
4637
&& apt-get -y install dotnet-sdk-2.0.0-preview2-006497
4738

39+
# See: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest#install-on-debianubuntu-with-apt-get
40+
RUN apt-get update \
41+
&& apt-get install apt-transport-https \
42+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" > /etc/apt/sources.list.d/azure-cli.list \
43+
&& apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \
44+
&& apt-get update \
45+
&& apt-get install azure-cli
46+
4847
ADD . /gopath/src/github.com/Azure/acs-engine

0 commit comments

Comments
 (0)