Install azure cli into docker-sonic-mgmt (#1322)

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
This commit is contained in:
Qi Luo 2018-01-18 15:35:38 -08:00 committed by GitHub
parent 8db959d2a3
commit 33157dc2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,9 @@ RUN apt-get install -y \
sshpass \
libxml2 \
libxslt1-dev \
python-setuptools
python-setuptools \
build-essential \
curl
# For JNLP launcher
RUN apt-get install -y default-jre
@ -87,4 +89,10 @@ RUN echo "$user ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers
USER $user
RUN cd /var/$user && git clone https://github.com/Azure/sonic-mgmt
# Install Azure CLI
WORKDIR /var/$user
RUN curl -L https://aka.ms/InstallAzureCliBundled -o azure-cli_bundle.tar.gz
RUN tar -xvzf azure-cli_bundle.tar.gz
RUN azure-cli_bundle_*/installer
RUN git clone https://github.com/Azure/sonic-mgmt