Skip to content

Commit ed80a2e

Browse files
whummerclaude
andcommitted
Install Terraform in devcontainer via HashiCorp apt repo
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 973b9e6 commit ed80a2e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.devcontainer/Dockerfile.github

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
FROM mcr.microsoft.com/devcontainers/universal
22

3-
RUN sudo apt-get update && sudo apt-get install -y curl jq
3+
RUN sudo apt-get update && sudo apt-get install -y curl jq gnupg lsb-release
4+
5+
# Install Terraform via HashiCorp apt repo
6+
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && \
7+
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list && \
8+
sudo apt-get update && sudo apt-get install -y terraform
49

510
# Install LocalStack CLI, AWS CLI, and local wrappers
611
RUN pip install localstack awscli awscli-local terraform-local pytest requests

0 commit comments

Comments
 (0)