Skip to content
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
fix: examples/lima: fix terraform installation
To work around hashicorp/terraform#31826,
download terraform binary directly instead of using Hashicorp APT
repo.

Signed-off-by: Cian Johnston <cian@coder.com>
  • Loading branch information
johnstcn committed Sep 26, 2022
commit b94e746e3f93a669f6ac4a6b36dc3c9dd8e0c2db
12 changes: 6 additions & 6 deletions examples/lima/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ provision:
#!/bin/bash
set -eux -o pipefail
command -v terraform >/dev/null 2>&1 && exit 0
wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/terraform-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install terraform=1.3.0
apt-mark hold terraform
DEBIAN_FRONTEND=noninteractive apt-get install -qqy unzip
rm -fv /tmp/terraform.zip || true
wget -qO /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.3.0/terraform_1.3.0_linux_$(dpkg --print-architecture).zip"
unzip /tmp/terraform.zip -d /usr/local/bin/
chmod +x /usr/local/bin/terraform
rm -fv /tmp/terraform.zip || true
- mode: system
script: |
#!/bin/bash
Expand Down