{"id":15716584,"url":"https://github.com/gableroux/docker-terraform-graphviz","last_synced_at":"2026-04-15T07:33:32.697Z","repository":{"id":145782237,"uuid":"201816606","full_name":"GabLeRoux/docker-terraform-graphviz","owner":"GabLeRoux","description":"🌏  Docker image to use terraform and graphviz to make it easier to generate graphs with terraform 👍","archived":false,"fork":false,"pushed_at":"2021-09-11T04:47:42.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T04:54:57.779Z","etag":null,"topics":["ci","docker-automated","docker-image","graphviz","hashicorp"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/gableroux/terraform-graphviz","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabLeRoux.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-11T21:26:44.000Z","updated_at":"2021-09-11T04:47:45.000Z","dependencies_parsed_at":"2023-07-28T09:30:10.748Z","dependency_job_id":null,"html_url":"https://github.com/GabLeRoux/docker-terraform-graphviz","commit_stats":null,"previous_names":[],"tags_count":93,"template":false,"template_full_name":null,"purl":"pkg:github/GabLeRoux/docker-terraform-graphviz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fdocker-terraform-graphviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fdocker-terraform-graphviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fdocker-terraform-graphviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fdocker-terraform-graphviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabLeRoux","download_url":"https://codeload.github.com/GabLeRoux/docker-terraform-graphviz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabLeRoux%2Fdocker-terraform-graphviz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31831828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","docker-automated","docker-image","graphviz","hashicorp"],"created_at":"2024-10-03T21:46:11.719Z","updated_at":"2026-04-15T07:33:32.654Z","avatar_url":"https://github.com/GabLeRoux.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-graphviz docker image\n\nDocker image to use [`terraform`](https://www.terraform.com/) and graphviz to make it easier to generate graphs with terraform :+1:\n\n[![Docker Stars](https://img.shields.io/docker/stars/gableroux/terraform-graphviz.svg)](https://hub.docker.com/r/gableroux/terraform-graphviz)\n[![Docker Pulls](https://img.shields.io/docker/pulls/gableroux/terraform-graphviz.svg)](https://hub.docker.com/r/gableroux/terraform-graphviz)\n[![Docker Automated](https://img.shields.io/docker/automated/gableroux/terraform-graphviz.svg)](https://hub.docker.com/r/gableroux/terraform-graphviz)\n[![Docker Build](https://img.shields.io/docker/build/gableroux/terraform-graphviz.svg)](https://hub.docker.com/r/gableroux/terraform-graphviz)\n[![Image](https://images.microbadger.com/badges/image/gableroux/terraform-graphviz.svg)](https://microbadger.com/images/gableroux/terraform-graphviz)\n[![Version](https://images.microbadger.com/badges/version/gableroux/terraform-graphviz.svg)](https://microbadger.com/images/gableroux/terraform-graphviz)\n[![Layers](https://images.microbadger.com/badges/image/gableroux/terraform-graphviz.svg)](https://microbadger.com/images/gableroux/terraform-graphviz)\n\n## Usage\n\n### Command line usage example\n\n```bash\ndocker run --rm -it \\\n  --workdir=/app \\\n  -v \"$PWD:/app\" \\\n  -v \"$HOME/.aws:/root/.aws/\" \\\n  -v \"$HOME/.ssh:/root/.ssh/\" \\\n  gableroux/terraform-graphviz:light\n    sh -c \"terraform graph -draw-cycles | dot -Tsvg -o graph.svg\"\n```\n\n### `docker-compose.yml` example\n\n```yaml\nversion: '3'\nservices:\n  # official terraform image\n  terraform:\n    image: hashicorp/terraform:light\n    env_file: .env\n    volumes:\n      - \"$PWD:/app\"\n      - \"$HOME/.aws:/root/.aws/\"\n      - \"$HOME/.ssh:/root/.ssh/\"\n    working_dir: /app\n  # image based on official image with graphviz addition, only use when you when you want ot generate graphs\n  terraform-graphviz:\n    image: gableroux/terraform-graphviz:light\n    env_file: .env\n    volumes:\n      - \"$PWD:/app\"\n      - \"$HOME/.aws:/root/.aws/\"\n      - \"$HOME/.ssh:/root/.ssh/\"\n```\n\n### `.gitlab-ci.yml` example\n\nThis will run `validate` against your terraform code, quite useful and quick to run in a CI (uses official terraform image).\n\n```bash\nstages:\n  - test\n\nterraform_validate:\n  stage: test\n  image: hashicorp/terraform:light\n  script:\n    - cp .env.example .env\n    - terraform init\n    - terraform validate -check-variables=true # don't require aws credentials\n\n```\n\n## FAQ\n\n### How to deploy new docker image\n\nThere is a script in `scripts` that reads values from `versions.txt` and runs required commands to push to the repository with tags and trigger docker hub. :v:\n\n### Why bother using a docker image\n\nInstalling directly for your distro is fine, but pulling this image is faster. You should use the official [hashicorp/terraform docker container](https://hub.docker.com/r/hashicorp/terraform/) when you can.\n\n### Why not use an official terraform image?\n\nYou should indeed use the official [hashicorp/terraform docker container](https://hub.docker.com/r/hashicorp/terraform/). In my case, I also wanted to have `graphviz` installed so it to generate terraform graphs. It's probably better to stick to the original one.\n\n### My version is not there, what can I do?\n\nFork the project, replace version in FROM image and push your own image.\n\n### Can I contribute?\n\nYes, why not?\n\n### There are already a lot of terraform docker images out there, why a new one?\n\nI don't trust people when it comes to running critical code against infrastructure. If you wish to use this, I recommend you to fork it and build your own.\n\n### How is this image deployed to docker hub?\n\nI'm using [docker's automated build](https://docs.docker.com/docker-hub/builds/)\n\n## License\n\n[MIT](LICENSE.md) © [Gabriel Le Breton](https://gableroux.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgableroux%2Fdocker-terraform-graphviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgableroux%2Fdocker-terraform-graphviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgableroux%2Fdocker-terraform-graphviz/lists"}