From e7e2ed8e2c01a17e1e99bd95de4716b3181545d5 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sun, 7 Dec 2025 17:17:29 +0000 Subject: [PATCH] feat: add terraform-ci image with tflint --- images/terraform-ci/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 images/terraform-ci/Dockerfile diff --git a/images/terraform-ci/Dockerfile b/images/terraform-ci/Dockerfile new file mode 100644 index 0000000..7b3d345 --- /dev/null +++ b/images/terraform-ci/Dockerfile @@ -0,0 +1,33 @@ +# ============================================================================= +# Terraform CI Image +# +# Image légère pour les pipelines CI/CD Terraform +# Inclut : Terraform, tflint, git +# ============================================================================= + +FROM hashicorp/terraform:1.5.7 + +LABEL maintainer="Damien Arnodo" +LABEL description="Terraform CI image with tflint for Gitea Actions" + +# Installation des outils supplémentaires +RUN apk add --no-cache \ + curl \ + git \ + bash \ + jq + +# Installation de tflint +ARG TFLINT_VERSION=0.54.0 +RUN curl -sL "https://github.com/terraform-linters/tflint/releases/download/v${TFLINT_VERSION}/tflint_linux_amd64.zip" -o /tmp/tflint.zip \ + && unzip /tmp/tflint.zip -d /usr/local/bin \ + && rm /tmp/tflint.zip \ + && chmod +x /usr/local/bin/tflint + +# Vérification des versions +RUN terraform version && tflint --version + +WORKDIR /workspace + +ENTRYPOINT [] +CMD ["/bin/bash"]