Minimal & lightweight docker image including Azure and Terraform CLI
500K+
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
supported_versions.json file.zenika/terraform-azure-cli:release-S.T_terraform-UU.VV.WW_azcli-XX.YY.ZZ - build from releases
release-S.T is the release tagterraform-UU.VV.WWW is the included Terraform CLI versionazcli-XX.YY.ZZ is the included Azure CLI versionPlease report to the releases page for the changelogs.
Any other tags are not supported even if available.
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.
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
--rmflag will completely destroy the container and its data on exit.
You can build the image locally directly from the Dockerfile, using the build script.
It will :
zenika/terraform-azure-cli:dev;# 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
AZURE_CLI_VERSION=2.24.2
TERRAFORM_VERSION=0.15.5
# launch dev script with parameters
./dev.sh $AZURE_CLI_VERSION $TERRAFORM_VERSION
Please refer to the github project to track new features.
Do not hesitate to contribute by filling an issue or opening a PR !
This project is under the Apache License 2.0
Content type
Image
Digest
Size
183.2 MB
Last updated
over 4 years ago
docker pull zenika/terraform-azure-cli