If I have following tree structure:
/codes
|---src
|--- variables.tf
|---docs
|--- README.md
the recent change on entrypoint script prevents me from replacing section inside README.md.
Can we either revert to have the ENV_FILE environment variable or remove the call on dirname at
|
DOCS="$(terraform-docs "${@}" "$(dirname "${MY_FILE}")")" |
?
The later will allow me to mount /codes as /data, then set /data/src as current working directory. Then tf doc can be currently generated and output to docs/README.md:
docker run --rm -it -v /codes:/data -w /data/src cytopia/docker-terraform-docs terraform-docs-replace md ../docs/README.md
If I have following tree structure:
/codes
|---src
|--- variables.tf
|---docs
|--- README.md
the recent change on entrypoint script prevents me from replacing section inside README.md.
Can we either revert to have the ENV_FILE environment variable or remove the call on
dirnameatdocker-terraform-docs/data/docker-entrypoint-0.12.sh
Line 108 in 1bcddf6
The later will allow me to mount /codes as /data, then set /data/src as current working directory. Then tf doc can be currently generated and output to docs/README.md:
docker run --rm -it -v /codes:/data -w /data/src cytopia/docker-terraform-docs terraform-docs-replace md ../docs/README.md