From a5132792baae02c79978f9801589e13a5af7f656 Mon Sep 17 00:00:00 2001 From: Sina Date: Tue, 6 Aug 2024 14:01:14 +0330 Subject: [PATCH] build/cluster-ci:v0.1 --- cluster-ci/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cluster-ci/Dockerfile diff --git a/cluster-ci/Dockerfile b/cluster-ci/Dockerfile new file mode 100644 index 0000000..8c216aa --- /dev/null +++ b/cluster-ci/Dockerfile @@ -0,0 +1,16 @@ +FROM hashicorp/terraform:1.5.4 + +ARG TERRAFORM_PLUGIN_DIR=/terraform-plugins + +ADD . /src + +WORKDIR /src/shared-resources + +RUN mkdir -p ${TERRAFORM_PLUGIN_DIR} && \ + # Install Terraform modules + terraform get && \ + # Save local copies of all required provider plugins to ${TERRAFORM_PLUGIN_DIR} + terraform providers mirror -platform=linux_amd64 ${TERRAFORM_PLUGIN_DIR} && \ + rm -rf /src + +WORKDIR ${TERRAFORM_PLUGIN_DIR}