[mgmt] Fix Azure CLI install behind proxy (#5407)

Signed-off-by: Danny Allen <daall@microsoft.com>
This commit is contained in:
Danny Allen 2020-09-22 09:37:03 -07:00 committed by GitHub
parent c8277a4eba
commit 9feba88455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,9 @@ RUN apt-get update \
&& apt-get update \ && apt-get update \
&& apt-get install -y docker-ce-cli && apt-get install -y docker-ce-cli
# Install Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
# Install Microsoft Azure Kusto Library for Python # Install Microsoft Azure Kusto Library for Python
RUN pip install azure-kusto-data==0.0.13 \ RUN pip install azure-kusto-data==0.0.13 \
azure-kusto-ingest==0.0.13 azure-kusto-ingest==0.0.13
@ -154,10 +157,10 @@ RUN chmod go= /var/$user/.ssh -R
RUN echo "$user ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers RUN echo "$user ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers
USER $user USER $user
# Install Azure CLI
WORKDIR /var/$user WORKDIR /var/$user
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# Add az symlink for backwards compatibility
RUN mkdir bin && ln -s /usr/bin/az bin/az
# Install Virtual Environments # Install Virtual Environments
RUN python -m virtualenv --system-site-packages env-201811 RUN python -m virtualenv --system-site-packages env-201811