Skip to content

Commit

Permalink
Add Azure CLI to image
Browse files Browse the repository at this point in the history
  • Loading branch information
pathob committed Nov 15, 2022
1 parent 222b066 commit 4b0b76c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 13 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Terraform version compatibility table:

Furthermore, this Docker image contains the following secondary binaries:

* `az` (Azure CLI)
* `make`
* `psql` (Postgresql CLI)

Expand All @@ -31,7 +32,7 @@ jobs:
image: ghcr.io/aservo/terragrunt:latest
steps:
- name: Versions
run: |
run: |
terraform version
terragrunt version
```
Expand All @@ -55,7 +56,7 @@ Build image:
```
docker build .
...
Successfully built a123b4c567de
Successfully built a123b4c567de
```

Run image:
Expand Down

0 comments on commit 4b0b76c

Please sign in to comment.