bgauduch
terraform-azure-cli
Dockerfile

Minimal & lightweight docker image including Azure and Terraform CLI

Last updated Apr 13, 2026
33
Stars
37
Forks
35
Issues
0
Stars/day
Attention Score
59
Language breakdown
Dockerfile 59.0%
Shell 41.0%
Files click to expand
README

lint-dockerfile build-test push-latest release

Update Docker Hub Description License Docker Pulls

Terraform and Azure CLI Docker image

📦 Supported tags and respective Dockerfile links

Available image tags can be found on the Docker Hub registry: zenika/terraform-azure-cli

Supported versions are listed in the supported_versions.json file in project root folder.

The following image tag strategy is applied:

  • zenika/terraform-azure-cli:latest - build from master
* Included CLI versions are the newest in the supported_versions.json file.
  • zenika/terraform-azure-cli:release-S.Tterraform-UU.VV.WWazcli-XX.YY.ZZ - build from releases
* release-S.T is the release tag * terraform-UU.VV.WWW is the included Terraform CLI version * azcli-XX.YY.ZZ is the included Azure CLI version

Please report to the releases page for the changelogs.

Any other tags are not supported even if available.

💡 Motivation

The goal is to create a minimalist and lightweight image with these tools in order to reduce network and storage impact.

This image gives you the flexibility to be used either for development or as a base image as you see fits.

🔧 What's inside ?

🚀 Usage

🐚 Launch the CLI

Simply launch the container and use the CLI as you would on any other platform, for instance using the latest image:
docker container run -it --rm --mount type=bind,source="$(pwd)",target=/workspace zenika/terraform-azure-cli:latest
The --rm flag will completely destroy the container and its data on exit.

⚙️ Build the image

You can build the image locally directly from the Dockerfile, using the build script.

It will :

# launch dev script using latest supported versions for both Azure and Terraform CLI ./dev.sh

Optionally, it is possible to choose the tools desired versions:

# Set desired tool versions
AZURECLIVERSION=2.24.2
TERRAFORM_VERSION=0.15.5

launch dev script with parameters

./dev.sh $AZURECLIVERSION $TERRAFORM_VERSION

🙏 Roadmap & Contributions

Please refer to the github project to track new features.

Do not hesitate to contribute by filling an issue or opening a PR !

⬆️ Dependencies upgrades checklist

  • Supported versions:
* check Azure CLI version on the project release page * check Terraform CLI version (keep all minor versions from 0.11) available on the project release page
  • Dockerfile:
* check base image version on DockerHub * check OS package versions on Debian package repository * Available Git versions on the Debian Packages repository * Available Python versions on the Debian packages repository * same process for all other packages * check Pip package versions on pypi
  • Github actions:
* check runner version * check each action release versions
  • Build scripts:
* check container tags: * Hadolint releases * Container-structure-test
  • Readme:
* update version in code exemples

🚩 Similar repositories

📖 License

This project is under the Apache License 2.0

with love by zenika

🔗 More in this category

© 2026 GitRepoTrend · bgauduch/terraform-azure-cli · Updated daily from GitHub