1
1
{
2
- "name" : " CAF Documentation website" ,
3
-
4
- // Update the 'dockerComposeFile' list if you have more compose files or use different names.
5
- "dockerComposeFile" : " docker-compose.yml" ,
6
-
7
- // The 'service' property is the name of the service for the container that VS Code should
8
- // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
9
- "service" : " rover" ,
10
-
11
- // The optional 'workspaceFolder' property is the path VS Code should open by default when
12
- // connected. This is typically a volume mount in .devcontainer/docker-compose.yml
13
- "workspaceFolder" : " /tf/caf" ,
14
-
15
- // Use 'settings' to set *default* container specific settings.json values on container create.
16
- // You can edit these settings after create using File > Preferences > Settings > Remote.
17
- "settings" : {
18
- "files.eol" : " \n " ,
19
- "editor.tabSize" : 2 ,
20
- "terminal.integrated.scrollback" : 64000 ,
2
+ "image" : " mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04" ,
3
+ "customizations" : {
4
+ "vscode" : {
5
+ "settings" : {
6
+ "[typescript]" : {
7
+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
8
+ "editor.formatOnSave" : true
9
+ },
10
+ "[json]" : {
11
+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
12
+ "editor.formatOnSave" : true
13
+ },
14
+ "[jsonc]" : {
15
+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
16
+ "editor.formatOnSave" : true
17
+ }
18
+ },
19
+ "extensions" : [
20
+ " dbaeumer.vscode-eslint" ,
21
+ " orta.vscode-jest" ,
22
+ " esbenp.prettier-vscode" ,
23
+ " streetsidesoftware.code-spell-checker" ,
24
+ " ms-vscode.wordcount" ,
25
+ " GitHub.copilot"
26
+ ]
27
+ }
21
28
},
22
-
23
-
24
- // Uncomment the next line if you want start specific services in your Docker Compose config.
25
- // "runServices": [],
26
-
27
- // Uncomment this like if you want to keep your containers running after VS Code shuts down.
28
- // "shutdownAction": "none",
29
-
30
- // Uncomment the next line to run commands after the container is created.
31
- "postStartCommand" : " cp -R /tmp/.ssh-localhost/* ~/.ssh && chown -R $(whoami):$(whoami) ~ && chmod 400 ~/.ssh/* && apt update && apt install -y vim && git config --global core.editor vim && cd /tf/caf/website && yarn && yarn build && yarn serve" ,
32
- // Add the IDs of extensions you want installed when the container is created in the array below.
33
- "extensions" : [
34
- // "4ops.terraform",
35
- " mutantdino.resourcemonitor" ,
36
- " xyc.vscode-mdx-preview" ,
37
- " docsmsft.docs-authoring-pack"
38
- ]
39
- }
29
+ "forwardPorts" : [3000 ],
30
+ "containerUser" : " vscode" ,
31
+ "postCreateCommand" : " yarn install" ,
32
+ "waitFor" : " postCreateCommand" , // otherwise automated jest tests fail
33
+ "features" : {
34
+ "node" : {
35
+ "version" : " 20"
36
+ },
37
+ "github-cli" : " latest"
38
+ }
39
+ }
40
+
0 commit comments