GithubHelp home page GithubHelp logo

mikewaters / docker-terragrunt Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 15 KB

Simple terragrunt/terraform image.

Home Page: https://hub.docker.com/r/threecheese/docker-terragrunt/

License: MIT License

Shell 100.00%

docker-terragrunt's Introduction

docker-terragrunt

Why

In order to share a terraform state file among multiple users, it must be centrally available (and lockable). Terraform provides this functiojnality natively (vie backend feature), and terragrunt is a tool that (among other things) makes this process easier. However, in order to share a tfstate file, you must use the version of terraform that initially created the tfstate file. To facilitate interaction with remotely-stored tfstate files managed with terragrunt in a build environment, this docker image was created. The images stored in the docker hub will be versioned by terraform release number, so they can easily be pinned by tag in a build script or CI config file.

Bump a release

Build and push to Docker Hub are handled automatically at CircleCI.
In order to facilitate, I need to increment the VERSION file and tag the repo appropriately.

Workflow:

  • bump the terraform version in VERSION file.
  • commit and push, wait for the build to complete to certify that the docker image will work
  • create a tag, using the tag.sh helper
  • push the tag: git push --tags

Remove a tag ("I done effed up")

  • git tag -d tf-X.Y.Z
  • git push origin :tf-X.Y.Z

Dockerfile borrowed from https://github.com/chrisns/docker-terragrunt

docker-terragrunt's People

Contributors

mikewaters avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.