-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 use terraform-docs to generate module IO docs
- Loading branch information
1 parent
70baedc
commit 37b9280
Showing
6 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM golang:1.11 | ||
|
||
### | ||
# Set up the working directory | ||
# | ||
ENV CODES_DIR /codes | ||
RUN mkdir -p "${CODES_DIR}" | ||
WORKDIR "${CODES_DIR}" | ||
|
||
### | ||
# Install utilities | ||
# | ||
RUN go get github.com/segmentio/terraform-docs | ||
|
||
### | ||
# Install codes | ||
# | ||
COPY . . | ||
|
||
### | ||
# What we need is.. bash! | ||
# | ||
CMD [ "bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Generates the module markdown documents by terraform-docs. | ||
# | ||
# Usage: | ||
# ./docs.sh | ||
# | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
#set -o xtrace | ||
|
||
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
docker-compose build docs 2>/dev/null 1>/dev/null | ||
docker-compose run --rm docs |