@sudokar just a thought... most of the pre-commit hooks (e.g., terraform_fmt, terraform_docs) in the generated .pre-commit-config.yaml file use Anton Babenko's tooling for running the aforementioned scripts with locally-installed tools, which is normal and what most sane people would do. I'm wondering, though, if it would be useful to others to use Dockerized versions of those tools. So, for example, instead of running the terraform_docs.sh script, use the official terraform_docs container (quay.io/terraform-docs/terraform-docs:latest). If that makes sense, perhaps it would be good to add a switch to the module generator which would set a local/dockerized tools parameter.
Why? Because I tend to run terraform and such in Docker because downloading it and installing it every few days as Hashicorp releases patches is tiresome to me.
I'm happy to draft the shell script wrappers if you find this interesting.
@sudokar just a thought... most of the pre-commit hooks (e.g., terraform_fmt, terraform_docs) in the generated .pre-commit-config.yaml file use Anton Babenko's tooling for running the aforementioned scripts with locally-installed tools, which is normal and what most sane people would do. I'm wondering, though, if it would be useful to others to use Dockerized versions of those tools. So, for example, instead of running the
terraform_docs.shscript, use the official terraform_docs container (quay.io/terraform-docs/terraform-docs:latest). If that makes sense, perhaps it would be good to add a switch to the module generator which would set a local/dockerized tools parameter.Why? Because I tend to run
terraformand such in Docker because downloading it and installing it every few days as Hashicorp releases patches is tiresome to me.I'm happy to draft the shell script wrappers if you find this interesting.