@@ -39,10 +39,13 @@ RUN apk add --no-cache \
3939COPY --from=builder /install /
4040
4141# Tool versions
42+ ARG OPENTOFU_VERSION=1.11.5
4243ARG SOPS_VERSION=3.11.0
4344ARG TERRAFORM_DOCS_VERSION=0.21.0
4445ARG TFUPDATE_VERSION=0.9.1
4546ARG HCLEDIT_VERSION=0.2.17
47+ ARG TFLINT_VERSION=0.61.0
48+ ARG INFRACOST_VERSION=0.10.43
4649
4750# Install all binary tools in a single layer, strip debug symbols, clean up
4851# hadolint ignore=DL3003,DL4006
@@ -52,7 +55,7 @@ RUN set -eux; \
5255 "https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux.amd64" ; \
5356 chmod +x /usr/local/bin/sops; \
5457 # OpenTofu (and symlink as terraform)
55- curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh | sh -s -- --install-method standalone; \
58+ curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh | sh -s -- --install-method standalone --opentofu-version "${OPENTOFU_VERSION}" ; \
5659 ln -s /usr/local/bin/tofu /usr/local/bin/terraform; \
5760 # OpenShift CLI
5861 curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz | tar xz -C /usr/local/bin oc; \
@@ -73,9 +76,9 @@ RUN set -eux; \
7376 tar xz -C /usr/local/bin hcledit; \
7477 chmod +x /usr/local/bin/hcledit; \
7578 # tflint
76- curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash; \
79+ curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | TFLINT_VERSION= "v${TFLINT_VERSION}" bash; \
7780 # infracost
78- curl -fsSL https://raw.githubusercontent.com/infracost/infracost/master/scripts/install.sh | sh; \
81+ curl -fsSL https://raw.githubusercontent.com/infracost/infracost/master/scripts/install.sh | INFRACOST_VERSION= "v${INFRACOST_VERSION}" sh; \
7982 # Strip debug symbols from all Go/Rust binaries
8083 strip /usr/local/bin/sops \
8184 /usr/local/bin/tofu \
0 commit comments