Skip to content

Commit

Permalink
build/cluster-ci:v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamna committed Aug 6, 2024
1 parent 50ba344 commit a513279
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cluster-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit a513279

Please sign in to comment.