-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevcontainer.json
More file actions
89 lines (81 loc) · 3.79 KB
/
devcontainer.json
File metadata and controls
89 lines (81 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
// "name" specifies the name of the development container, which helps in identifying it in a list of containers.
"name": "Ubuntu",
// "build" section is used to define how the development container is built. It can reference a Dockerfile or a Docker Compose file.
"build": {
"dockerfile": "dockerfile" // Specifies the Dockerfile to use for building the container.
},
// "features" section allows adding and configuring predefined features or tools in the development container.
"features": {
// Adds and configures the Azure CLI with Bicep and Python installation options.
"ghcr.io/devcontainers/features/azure-cli:latest": {
"installBicep": true, // Enables Bicep installation.
"installUsingPython": true, // Installs using Python.
"version": "latest" // Specifies the version of the Azure CLI to install.
},
// Adds PowerShell to the container.
"ghcr.io/devcontainers/features/powershell:latest": {
"version": "latest" // Specifies the version of PowerShell to install.
},
// Adds Azure Bicep support.
"ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:latest": {},
// Adds Azure Developer CLI (azd) support.
"ghcr.io/azure/azure-dev/azd:latest": {},
// Adds and configures Terraform with specific version, TFLint, and Terragrunt.
"ghcr.io/prulloac/devcontainer-features/pre-commit:1.0.3": {},
// Adds and configures Terraform with specific version, TFLint, and Terragrunt.
"ghcr.io/devcontainers/features/terraform:1.4.1": {
"version": "latest", // Specifies the version of Terraform to install.
"tflint": "latest", // Specifies the version of TFLint to install.
"terragrunt": "latest", // Specifies the version of Terragrunt to install.
"installTerraformDocs": true
},
"ghcr.io/devcontainers/features/docker-in-docker:latest": {
"moby": true,
"azureDnsAutoDetection": true,
"installDockerBuildx": true,
"installDockerComposeSwitch": true,
"version": "latest",
"dockerDashComposeVersion": "latest"
}
},
"postCreateCommand": "pre-commit install",
// "customizations" section allows configuring specific aspects of the development environment, such as VS Code settings and extensions.
"customizations": {
"vscode": {
// Defines VS Code settings to be applied within the dev container.
"settings": {
"editor.formatOnSaveMode": "file", // Configures format on save to be applied to the entire file.
"bicep.experimental.deployPane": "true", // Enables the experimental deploy pane for Bicep.
"github.copilot.chat.codeGeneration.useInstructionFiles": "true"
},
// Lists VS Code extensions to be installed in the dev container environment.
"extensions": [
"ms-azuretools.vscode-azurecontainerapps",
"ms-azuretools.vscode-azureresourcegroups",
"ms-azuretools.vscode-bicep",
"editorconfig.editorconfig",
"BenjaminBenais.copilot-theme",
"GitHub.copilot",
"GitHub.copilot-chat",
"ms-vscode.azure-account",
"hashicorp.terraform",
"golang.Go",
"ms-azuretools.vscode-docker",
"formulahendry.docker-explorer",
"ms-dotnettools.csdevkit",
"ms-kubernetes-tools.vscode-aks-tools"
]
}
}
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container that are available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"}
}