Skip to content

fix(scripts): wget terraform directly from releases.hashicorp.com #9594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! wget terraform directly from releases.hashicorp.com
  • Loading branch information
johnstcn committed Sep 8, 2023
commit d5ba23ea3818f69adc89eb22e618cc077b34a2df
3 changes: 1 addition & 2 deletions scripts/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ RUN apk add --no-cache \
# Using wget for now. Note that busybox unzip doesn't support streaming.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It used to 😢

ARG ARCH
RUN wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_linux_${ARCH}.zip" && \
busybox unzip /tmp/terraform.zip -d / && \
mv /terraform /usr/local/bin/terraform && \
busybox unzip /tmp/terraform.zip -d /usr/local/bin && \
rm -f /tmp/terraform.zip && \
chmod +x /usr/local/bin/terraform && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it already is +x inside the zip, but caution doesn't hurt here.

terraform --version
Expand Down