Skip to content

Commit

Permalink
Merge pull request #8 from aservo/feature/azure-cli
Browse files Browse the repository at this point in the history
Add Azure CLI to image
  • Loading branch information
lehmannk authored Nov 15, 2022
2 parents 222b066 + 94de302 commit 639e05b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 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
12 changes: 4 additions & 8 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,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
```

Expand All @@ -55,7 +51,7 @@ Build image:
```
docker build .
...
Successfully built a123b4c567de
Successfully built a123b4c567de
```

Run image:
Expand Down

0 comments on commit 639e05b

Please sign in to comment.