You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
622 B

  1. # Terraform Docker Image
  2. This repository is for building a container image that uses a simple terraform
  3. wrapper to work on terraform files mounted in the `/home/terraform/source`
  4. directory. It is also the image base for creating custom terraform images
  5. with special plugins preloaded onto the image.
  6. ## Building
  7. Create a container with a specific version of terraform
  8. ```bash
  9. docker build -t terraform:0.13.0 --build-arg TERRAFORM_VERSION=0.13.0 .
  10. ```
  11. ## Usage
  12. Mount the current directory as the terraform source and run the show command
  13. ```bash
  14. docker run -v $(pwd):/home/terrform/source terraform:0.13.0 show
  15. ```