From 865675b39b652dd7a403289d9cd861269600376e Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Thu, 24 Oct 2024 03:07:25 +0200 Subject: [PATCH] Fix `terraform` install commands (#1483) * Fix `terraform` install commands * Update Dockerfile --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4849a8115..c4e5f42ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,12 +61,11 @@ RUN add-apt-repository ppa:git-core/ppa --yes \ && rm --recursive --force /var/lib/apt/lists/* # INSTALL TERRAFORM -RUN curl --location https://apt.releases.hashicorp.com/gpg | sudo apt-key add - \ - && apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release --codename --short) main" \ - && apt update \ - && apt-get install --yes terraform \ - && apt-get clean \ - && rm --recursive --force /var/lib/apt/lists/* +RUN curl --remote-name --location https://releases.hashicorp.com/terraform/1.9.8/terraform_1.9.8_linux_amd64.zip \ + && unzip terraform_1.9.8_linux_amd64.zip \ + && mv terraform /usr/bin \ + && rm LICENSE.txt terraform_1.9.8_linux_amd64.zip \ + && terraform version # make sure it works # INSTALL LEO RUN curl --location https://github.com/iterative/terraform-provider-iterative/releases/latest/download/leo_linux_amd64 \