testing new devcontainer.json
This commit is contained in:
@@ -1,32 +1,41 @@
|
|||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
|
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
|
||||||
{
|
{
|
||||||
"name": "terrafrom-dev-test",
|
"name": "terraform-dev-environment",
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
||||||
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
||||||
"features": {
|
"features": {
|
||||||
// "ghcr.io/devcontainers/features/aws-cli:1": {},
|
"ghcr.io/devcontainers/features/aws-cli:1": {},
|
||||||
//"ghcr.io/dhoeric/features/terraform-docs:1": {},
|
|
||||||
"ghcr.io/devcontainers/features/terraform:1": {},
|
"ghcr.io/devcontainers/features/terraform:1": {},
|
||||||
"ghcr.io/dhoeric/features/tfsec:1":{}
|
"ghcr.io/dhoeric/features/terraform-docs:1": {},
|
||||||
|
"ghcr.io/dhoeric/features/tfsec:1": {},
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
"postCreateCommand": "terraform version && tfsec --version && terraform-docs --version",
|
||||||
// "forwardPorts": [],
|
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
|
||||||
"postCreateCommand": "echo 'use tfsec and tflint for better results'",
|
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": ["hashicorp.terraform","oderwat.indent-rainbow","catppuccin.catppuccin-vsc","catppuccin.catppuccin-vsc-icons","continue.continue"]
|
"extensions": [
|
||||||
|
"hashicorp.terraform",
|
||||||
|
"tfsec.tfsec",
|
||||||
|
"oderwat.indent-rainbow",
|
||||||
|
"catppuccin.catppuccin-vsc",
|
||||||
|
"catppuccin.catppuccin-vsc-icons",
|
||||||
|
"continue.continue",
|
||||||
|
"davidanson.vscode-markdownlint",
|
||||||
|
"streetsidesoftware.code-spell-checker"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"terraform.experimentalFeatures.validateOnSave": true,
|
||||||
|
"terraform.languageServer": {
|
||||||
|
"enabled": true,
|
||||||
|
"args": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
||||||
//"remoteUser": "root"
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"remoteUser": "vscode"
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user