feat: integrate terraform-ls LSP for Terraform development
- Add terraform-ls Dockerfile (Alpine-based, v0.38.4) - Add terraform-ls service to docker-compose.yml - Create LSP wrapper script for Crush integration - Add terraform entry to crush.json under lsp section - Update STATUS.md with terraform-ls working status 🧡 Generated with Crush Assisted-by: GLM-5 via Crush <crush@charm.land>
This commit is contained in:
27
dockerfiles/terraform-ls/Dockerfile
Normal file
27
dockerfiles/terraform-ls/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
# Terraform Language Server (terraform-ls)
|
||||
# Official HashiCorp LSP for Terraform
|
||||
# https://github.com/hashicorp/terraform-ls
|
||||
|
||||
FROM alpine:3.18
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
ca-certificates \
|
||||
git \
|
||||
unzip
|
||||
|
||||
# Install terraform-ls
|
||||
ARG TERRAFORM_LS_VERSION=0.38.4
|
||||
RUN curl -fsSL https://releases.hashicorp.com/terraform-ls/${TERRAFORM_LS_VERSION}/terraform-ls_${TERRAFORM_LS_VERSION}_linux_amd64.zip \
|
||||
-o terraform-ls.zip && \
|
||||
unzip terraform-ls.zip && \
|
||||
mv terraform-ls /usr/local/bin/ && \
|
||||
chmod +x /usr/local/bin/terraform-ls && \
|
||||
rm terraform-ls.zip
|
||||
|
||||
# Set up working directory
|
||||
WORKDIR /workspace
|
||||
|
||||
# Run terraform-ls in stdio mode
|
||||
ENTRYPOINT ["terraform-ls", "serve"]
|
||||
Reference in New Issue
Block a user