From 94de302c4bc27efb2072fdc42836ec2d21d2f05c Mon Sep 17 00:00:00 2001 From: Patrick Hobusch Date: Tue, 15 Nov 2022 16:31:27 +0800 Subject: [PATCH] Add Azure CLI to image --- Dockerfile | 15 +++++++++++++-- README.md | 12 ++++-------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4dc2af7..eac121d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,22 @@ FROM hashicorp/terraform:1.3.4 RUN apk add --no-cache \ ansible \ bash \ + cargo \ + gcc \ + libffi-dev \ make \ - postgresql + musl-dev \ + openssl-dev \ + postgresql \ + py3-pip \ + python3-dev + +ARG AZ_VERSION=2.42.0 +RUN pip install --upgrade pip \ + && pip install -Iv azure-cli==${AZ_VERSION} ## Install Terragrunt -ARG TERRAGRUNT_VERSION=0.40.0 +ARG TERRAGRUNT_VERSION=0.40.2 RUN wget "https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64" -O /usr/local/bin/terragrunt --no-verbose \ && chmod +x /usr/local/bin/terragrunt diff --git a/README.md b/README.md index 07e7d9f..27ea445 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Terraform version compatibility table: Furthermore, this Docker image contains the following secondary binaries: +* `az` (Azure CLI) * `make` * `psql` (Postgresql CLI) @@ -31,22 +32,17 @@ jobs: image: ghcr.io/aservo/terragrunt:latest steps: - name: Versions - run: | + run: | terraform version terragrunt version ``` ## Development -Clone the repo by running the following command: +Clone the repo and change to the directory with the following commands: ``` git clone https://github.com/aservo/docker-terragrunt.git -``` - -Move to the folder containing DockerFile: - -``` cd docker-terragrunt ``` @@ -55,7 +51,7 @@ Build image: ``` docker build . ... -Successfully built a123b4c567de +Successfully built a123b4c567de ``` Run image: