Skip to content

A container with azure-cli and terraform to be used in CI/CD pipelines or local development.

Notifications You must be signed in to change notification settings

teqwerk/docker-terraform-azure-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build docker images Get latest release version

Terraform and Azure CLI Docker Image

This repository provides a Docker image that includes both Terraform and Azure CLI, built on top of Alpine Linux. It is intended to be used as a CI/CD tool for managing Azure resources using Terraform but can be used locally as well.

Available Images

Available images can be found in the GitHub Container Registry.

What's Inside

  • Azure CLI: A command-line tool for managing Azure resources.
  • Terraform: An infrastructure as code tool for building, changing, and versioning infrastructure safely and efficiently.
  • Supporting Packages: Additional tools like git and python3.

Getting Started

Prerequisites

  • Docker installed on your machine. You can download it from here.

Getting the Image

You can pull the pre-built image from the GitHub Container Registry:

docker pull ghcr.io/teqwerk/terraform-azure-cli:main

OR you can build the image yourself:

git clone https://github.com/teqwerk/docker-terraform-azure-cli.git && cd docker-terraform-azure-cli
docker build --build-arg TERRAFORM_VERSION=1.9.3 --build-arg AZURE_CLI_VERSION=2.62.0 .

Running the Container

You can run the container using the following command:

docker run -it --rm ghcr.io/teqwerk/terraform-azure-cli:main

Once inside the container, you can use terraform and az commands as you would normally:

terraform --version
az --version

Updating Versions

The versions of Terraform and Azure CLI are managed in the versions.json file. The GitHub Actions workflows automatically update these versions every 24 h and rebuild the Docker image.

View attestation

Tip

Attestations help you helps you protect against supply chain attacks by verifying the integrity of the image. Read more about attestation here.

You can view the attestation of the image by running the following github cli command:

gh attestation verify oci://ghcr.io/teqwerk/terraform-azure-cli:main --owner teqwerk

Replace main with the tag you want to verify.

Contributing

Nice you are thinking about contributing! Contributions are always welcome! Please feel free to open an issue or submit a pull request.

About

A container with azure-cli and terraform to be used in CI/CD pipelines or local development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages