From 76922c9c5598c6d21dd3c32382971441d390fa6a Mon Sep 17 00:00:00 2001 From: Iulian Meghea Date: Tue, 10 Feb 2026 11:58:27 +0000 Subject: [PATCH] feat: add Azure CLI to devops image --- images/devops/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/images/devops/Dockerfile b/images/devops/Dockerfile index 604a894..30261e4 100644 --- a/images/devops/Dockerfile +++ b/images/devops/Dockerfile @@ -6,22 +6,28 @@ USER root RUN < /etc/apt/sources.list.d/hashicorp.list +# Add Azure CLI repository +curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-archive-keyring.gpg +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" \ + > /etc/apt/sources.list.d/azure-cli.list + # Install tflint curl -fsSL https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash -# Install Terraform and Packer from HashiCorp repo +# Install Terraform, Packer, and Azure CLI from external repos apt-get update apt-get install -y --no-install-recommends \ terraform \ - packer + packer \ + azure-cli # Cleanup rm -rf /var/lib/apt/lists/*