Skip to content

Commit

Permalink
Add Azure CLI to container image
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta committed May 17, 2023
1 parent df630ff commit b73ae56
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests_e2e/orchestrator/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,25 @@ RUN \
# \
groupadd waagent && \
useradd --shell /bin/bash --create-home -g waagent waagent && \
\
# \
# Install the Azure CLI \
# \
apt-get install ca-certificates curl apt-transport-https lsb-release gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -sLS https://packages.microsoft.com/keys/microsoft.asc \
| gpg --dearmor \
| tee /etc/apt/keyrings/microsoft.gpg > /dev/null && \
chmod go+r /etc/apt/keyrings/microsoft.gpg && \
AZ_REPO=$(lsb_release -cs) && \
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" \
| tee /etc/apt/sources.list.d/azure-cli.list && \
apt-get update && \
apt-get install azure-cli && \
:

#
# Do the Poetry and LISA setup as waagent
# Install LISA as user waagent
#
USER waagent

Expand Down

0 comments on commit b73ae56

Please sign in to comment.