This is a Docker image that extends the official Google Cloud SDK image with the addition of Terraform.
https://hub.docker.com/r/cedricguadalupe/terraform-gcloud
This image is built using the following versions:
- Google Cloud SDK: 462.0.0
- Terraform: 1.7.1
To use this image, you will need Docker installed on your system.
You can pull the image from Docker Hub using the following command:
docker pull cedricguadalupe/terraform-gcloud
To run the image, you will need to provide your Google Cloud credentials and mount a directory for Terraform files. You can do this using the following command:
docker run -it -v /path/to/terraform/files:/terraform -v /path/to/credentials:/root/.config/gcloud -w /terraform cedricguadalupe/terraform-gcloud
This will start a container with the current working directory set to the mounted Terraform directory.
If you prefer to build the image locally, you can do so using the following command:
docker build -t cedricguadalupe/terraform-gcloud .