Skip to content

Commit

Permalink
add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
KamranBiglari committed Sep 24, 2023
1 parent eac57fd commit a3dc7d4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Terraform",
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04",
"features": {
"ghcr.io/devcontainers/features/terraform:1": {
"version": "${templateOption:version}",
"tflint": "${templateOption:tflint}",
"terragrunt": "${templateOption:terragrunt}"
},
"ghcr.io/dhoeric/features/terraform-docs:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"dockerDashComposeVersion": "v2"
}
},
"customizations": {
"vscode": {
"extensions": ["hashicorp.terraform"],
"settings": {
"terraform.languageServer": {
"enabled": true,
"args": []
}
}
}
},
"remoteEnv": {
"TF_LOG": "'${templateOption:tfLog}",
"TF_LOG_PATH": "'${templateOption:tfLogPath}"
}
}
2 changes: 2 additions & 0 deletions .devcontainer/library-scripts/terraform-debian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COPY library-scripts/terraform-debian.sh /tmp/library-scripts/
RUN apt-get update && bash /tmp/library-scripts/terraform-debian.sh

0 comments on commit a3dc7d4

Please sign in to comment.