|
21 | 21 | "postStartCommand": "post-start", |
22 | 22 | "remoteUser": "vscode", |
23 | 23 |
|
24 | | - // Configure tool-specific properties |
25 | 24 | "customizations": { |
26 | 25 | "vscode": { |
27 | | - // Add the IDs of extensions you want installed when the container is created |
28 | 26 | "extensions": [ |
29 | 27 | "hashicorp.terraform", |
30 | 28 | "ms-azuretools.vscode-azureterraform", |
|
46 | 44 | "ms-python.vscode-pylance" |
47 | 45 | ], |
48 | 46 |
|
49 | | - // Set *default* container specific settings.json values on container create |
50 | 47 | "settings": { |
51 | 48 | "terminal.integrated.defaultProfile.linux": "bash", |
52 | 49 | "terminal.integrated.profiles.linux": { |
|
63 | 60 | "files.insertFinalNewline": true, |
64 | 61 | "files.trimFinalNewlines": true, |
65 | 62 |
|
66 | | - // Terraform settings |
67 | 63 | "[terraform]": { |
68 | 64 | "editor.defaultFormatter": "hashicorp.terraform", |
69 | 65 | "editor.formatOnSave": true, |
|
80 | 76 | }, |
81 | 77 | "terraform.experimentalFeatures.validateOnSave": true, |
82 | 78 |
|
83 | | - // YAML settings |
84 | 79 | "[yaml]": { |
85 | 80 | "editor.defaultFormatter": "redhat.vscode-yaml", |
86 | 81 | "editor.formatOnSave": true, |
87 | 82 | "editor.tabSize": 2 |
88 | 83 | }, |
89 | 84 |
|
90 | | - // Markdown settings |
91 | 85 | "[markdown]": { |
92 | 86 | "editor.defaultFormatter": "yzhang.markdown-all-in-one", |
93 | 87 | "editor.formatOnSave": true |
|
96 | 90 | } |
97 | 91 | }, |
98 | 92 |
|
99 | | - // Mount host volumes for credentials and caching |
100 | 93 | "mounts": [ |
101 | 94 | "source=${localEnv:HOME}${localEnv:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached", |
102 | 95 | "source=${localEnv:HOME}${localEnv:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind,consistency=cached", |
|
105 | 98 | "source=terraform-cache,target=/home/vscode/.terraform.d/plugin-cache,type=volume" |
106 | 99 | ], |
107 | 100 |
|
108 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally |
109 | | - // "forwardPorts": [], |
| 101 | + "forwardPorts": [], |
110 | 102 |
|
111 | | - // Features to add to the dev container |
112 | 103 | "features": { |
113 | 104 | "ghcr.io/devcontainers/features/github-cli:1": {}, |
114 | 105 | "ghcr.io/devcontainers/features/git:1": { |
|
117 | 108 | } |
118 | 109 | }, |
119 | 110 |
|
120 | | - // Environment variables |
121 | 111 | "containerEnv": { |
122 | 112 | "TF_PLUGIN_CACHE_DIR": "/home/vscode/.terraform.d/plugin-cache" |
123 | 113 | } |
|
0 commit comments