Skip to content

Commit

Permalink
Install azure cli into docker-sonic-mgmt (#1322)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
  • Loading branch information
qiluo-msft authored Jan 18, 2018
1 parent 8db959d commit 33157dc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dockers/docker-sonic-mgmt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 33157dc

Please sign in to comment.