Golang image + terraform and terragrunt binaries installed.
1.0K
This repository contains a Dockerfile that aims to help to run golang/terratests automated tests and do so by providing the terraform and terragrunt binaries (built over a golang image).
The image gcavalcante8808/golang-terraform-devtools is built on a regular basis by Docker image service from the Dockerfile.
Take a look at the Dockerfile to check what terraform and terragrunt versions are available by default.
Using the terminal, navigate to your golang project/tests folder and run the following commands (requires docker):
docker run -it --rm -v $(pwd):/data gcavalcante8808/golang-terraform-devtools bash
cd /data
go test
If you need to build your own image with different terraform or terragrunt versions, you can do it by using docker in the following way:
git clone https://github.com/gcavalcante8808/golang-terraform-devtools.git
cd golang-terraform-devtools
docker build --build-arg TERRAFORM_VERSION=<SOME_TF_VERSION> TERRAGRUNT_VERSION=<SOME_TG_VERSION> . -t my-own-image
Author: Gabriel Abdalla Cavalcante Silva ([email protected])
Content type
Image
Digest
Size
363.5 MB
Last updated
over 4 years ago
docker pull gcavalcante8808/golang-terraform-devtools