|
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/javascript-node
|
3 | 3 | // -
|
4 | 4 | {
|
5 |
| - "name": "docs.github.com", |
6 |
| - "build": { |
7 |
| - "dockerfile": "Dockerfile", |
8 |
| - // Update 'VARIANT' to pick a Node version |
9 |
| - "args": { "VARIANT": "20" } |
10 |
| - }, |
| 5 | + "name": "docs.github.com", |
| 6 | + "build": { |
| 7 | + "dockerfile": "Dockerfile", |
| 8 | + // Update 'VARIANT' to pick a Node version |
| 9 | + "args": { "VARIANT": "22" } |
| 10 | + }, |
11 | 11 |
|
12 |
| - // Install features. Type 'feature' in the VS Code command palette for a full list. |
13 |
| - "features": { |
14 |
| - "sshd": "latest" |
15 |
| - }, |
| 12 | + // Install features. Type 'feature' in the VS Code command palette for a full list. |
| 13 | + "features": { |
| 14 | + "sshd": "latest" |
| 15 | + }, |
16 | 16 |
|
17 |
| - "customizations": { |
18 |
| - "vscode": { |
19 |
| - // Set *default* container specific settings.json values on container create. |
20 |
| - "settings": { |
21 |
| - "terminal.integrated.shell.linux": "/bin/bash", |
22 |
| - "cSpell.language": ",en" |
23 |
| - }, |
24 |
| - // Visual Studio Code extensions which help authoring for docs.github.com. |
25 |
| - "extensions": [ |
26 |
| - "dbaeumer.vscode-eslint", |
27 |
| - "sissel.shopify-liquid", |
28 |
| - "davidanson.vscode-markdownlint", |
29 |
| - "bierner.markdown-preview-github-styles", |
30 |
| - "streetsidesoftware.code-spell-checker", |
31 |
| - "alistairchristie.open-reusables", |
32 |
| - "AlistairChristie.version-identifier", |
33 |
| - "peterbe.ghdocs-goer", |
34 |
| - "GitHub.copilot", |
35 |
| - "GitHub.copilot-chat" |
36 |
| - ] |
37 |
| - }, |
38 |
| - "codespaces": { |
39 |
| - "repositories": { |
40 |
| - // allow Codespaces to pull from separate repo when user has access |
41 |
| - "github/docs-early-access": { |
42 |
| - "permissions": { |
43 |
| - "contents": "write" |
44 |
| - } |
45 |
| - } |
46 |
| - } |
47 |
| - } |
| 17 | + "customizations": { |
| 18 | + "vscode": { |
| 19 | + // Set *default* container specific settings.json values on container create. |
| 20 | + "settings": { |
| 21 | + "terminal.integrated.shell.linux": "/bin/bash", |
| 22 | + "cSpell.language": ",en" |
| 23 | + }, |
| 24 | + // Visual Studio Code extensions which help authoring for docs.github.com. |
| 25 | + "extensions": [ |
| 26 | + "dbaeumer.vscode-eslint", |
| 27 | + "sissel.shopify-liquid", |
| 28 | + "davidanson.vscode-markdownlint", |
| 29 | + "bierner.markdown-preview-github-styles", |
| 30 | + "streetsidesoftware.code-spell-checker", |
| 31 | + "alistairchristie.open-reusables", |
| 32 | + "AlistairChristie.version-identifier", |
| 33 | + "peterbe.ghdocs-goer", |
| 34 | + "GitHub.copilot", |
| 35 | + "GitHub.copilot-chat" |
| 36 | + ] |
48 | 37 | },
|
| 38 | + "codespaces": { |
| 39 | + "repositories": { |
| 40 | + // allow Codespaces to pull from separate repo when user has access |
| 41 | + "github/docs-early-access": { |
| 42 | + "permissions": { |
| 43 | + "contents": "write" |
| 44 | + } |
| 45 | + } |
| 46 | + } |
| 47 | + } |
| 48 | + }, |
49 | 49 |
|
50 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
51 |
| - "forwardPorts": [4000], |
| 50 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 51 | + "forwardPorts": [4000], |
52 | 52 |
|
53 |
| - "portsAttributes": { |
54 |
| - "4000": { |
55 |
| - "label": "Preview" |
56 |
| - } |
57 |
| - }, |
| 53 | + "portsAttributes": { |
| 54 | + "4000": { |
| 55 | + "label": "Preview" |
| 56 | + } |
| 57 | + }, |
58 | 58 |
|
59 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
60 |
| - "postCreateCommand": "npm ci", |
| 59 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 60 | + "postCreateCommand": "npm ci", |
61 | 61 |
|
62 |
| - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
63 |
| - "remoteUser": "node", |
| 62 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 63 | + "remoteUser": "node", |
64 | 64 |
|
65 |
| - "hostRequirements": { |
66 |
| - "memory": "8gb" |
67 |
| - } |
| 65 | + "hostRequirements": { |
| 66 | + "memory": "8gb" |
| 67 | + } |
68 | 68 | }
|
0 commit comments