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/*