Skip to content

Commit

Permalink
feat: add tflint & terraform-docs to asdf (#12)
Browse files Browse the repository at this point in the history
* tflint & terraform-docs

* add README

* add README

* add README
  • Loading branch information
maciejmacq-dev authored Feb 23, 2023
1 parent 768fa3a commit 8baaca8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ That custom `atlantis` docker image was created in order to install few helpful
- `terraform` (via asdf) - IaC automation
- `helm` (via asdf) - k8s package manager used by `helm` terraform provider
- `kubectl` (via asdf) - k8s CLI tool used by `kubernetes` terraform provider
- `tflint` (via asdf) - a pluggable terraform linter
- `terraform-docs` (via asdf) - a utility to generate documentation from terraform modules in various output formats
- `jq` (via asdf) - command line JSON parser
- `yq` (via asdf) - command like YAML parser
- `glab` (via asdf) - GitLab CLI client
Expand Down
8 changes: 8 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ARG JQ_VERSION=1.6
ARG YQ_VERSION=4.9.8
ARG AZURE_CLI_VERSION=2.44.1
ARG CHECKOV_VERSION=2.1.244
ARG TFLINT_VERSION=0.43.0
ARG TERRAFORM_DOCS_VERSION=0.16.0

RUN set -ex && \
apk update && \
Expand Down Expand Up @@ -67,6 +69,8 @@ RUN gosu atlantis bash -l -c " \
asdf plugin-add conftest && \
asdf plugin-add glab && \
asdf plugin-add jq && \
asdf plugin-add tflint && \
asdf plugin-add terraform-docs && \
asdf plugin-add yq"
# Install default versions and define them globally
RUN gosu atlantis bash -l -c " \
Expand All @@ -78,6 +82,8 @@ RUN gosu atlantis bash -l -c " \
asdf install conftest ${CONFTEST_VERSION} && \
asdf install glab ${GLAB_VERSION} && \
asdf install jq ${JQ_VERSION} && \
asdf install tflint ${TFLINT_VERSION} && \
asdf install terraform-docs ${TERRAFORM_DOCS_VERSION} && \
asdf install yq ${YQ_VERSION} && \
asdf global kubectl ${K8S_VERSION} && \
asdf global helm ${HELM_VERSION} && \
Expand All @@ -86,6 +92,8 @@ RUN gosu atlantis bash -l -c " \
asdf global conftest ${CONFTEST_VERSION} && \
asdf global glab ${GLAB_VERSION} && \
asdf global jq ${JQ_VERSION} && \
asdf global tflint ${TFLINT_VERSION} && \
asdf global terraform-docs ${TERRAFORM_DOCS_VERSION} && \
asdf global yq ${YQ_VERSION}"

# Additional cleanup
Expand Down

0 comments on commit 8baaca8

Please sign in to comment.