FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docs/.devcontainer/devcontainer.json at main · github/docs · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
docs
Public
Notifications
You must be signed in to change notification settings
Fork
68.5k
Star
20.7k
Code
Issues
75
Pull requests
33
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docs
/
.devcontainer
/
devcontainer.json
Copy path
More file actions
More file actions
Latest commit
History
History
History
78 lines (71 loc) · 2.31 KB
Breadcrumbs
docs
/
.devcontainer
/
devcontainer.json
Copy path
File metadata and controls
78 lines (71 loc) · 2.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
//
For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
//
https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/javascript-node
//
-
{
"name"
:
"
docs.github.com
"
,
"build"
: {
"dockerfile"
:
"
Dockerfile
"
,
//
Update 'VARIANT' to pick a Node version
"args"
: {
"VARIANT"
:
"
24
"
}
},
//
Install features. Type 'feature' in the VS Code command palette for a full list.
"features"
: {
"sshd"
:
"
latest
"
,
"ghcr.io/devcontainers/features/copilot-cli:1"
: {
"version"
:
"
prerelease
"
},
"ghcr.io/devcontainers/features/github-cli:1"
: {},
"ghcr.io/devcontainers/features/docker-in-docker:2"
: {}
},
"customizations"
: {
"vscode"
: {
//
Set *default* container specific settings.json values on container create.
"settings"
: {
"terminal.integrated.shell.linux"
:
"
/bin/bash
"
,
"cSpell.language"
:
"
,en
"
,
"git.autofetch"
:
true
},
//
Visual Studio Code extensions which help authoring for docs.github.com.
"extensions"
: [
"
dbaeumer.vscode-eslint
"
,
"
sissel.shopify-liquid
"
,
"
davidanson.vscode-markdownlint
"
,
"
bierner.markdown-preview-github-styles
"
,
"
streetsidesoftware.code-spell-checker
"
,
"
alistairchristie.open-reusables
"
,
"
AlistairChristie.version-identifier
"
,
"
peterbe.ghdocs-goer
"
,
"
GitHub.copilot
"
,
"
GitHub.copilot-chat
"
]
},
"codespaces"
: {
"repositories"
: {
//
allow Codespaces to pull from separate repo when user has access
"github/docs-early-access"
: {
"permissions"
: {
"contents"
:
"
write
"
}
}
}
}
},
//
Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts"
: [
4000
],
"portsAttributes"
: {
"4000"
: {
"label"
:
"
Review
"
}
},
//
Lifecycle commands
//
Start a web server and keep it running
"postStartCommand"
:
"
nohup bash -c 'npm ci && npm start &'
"
,
//
Set port 4000 to be public
"postAttachCommand"
:
"
gh cs ports visibility 4000:public -c
\"
$CODESPACE_NAME
\"
"
,
//
Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser"
:
"
node
"
,
"hostRequirements"
: {
"memory"
:
"
16gb
"
,
"cpus"
:
"
4
"
}
}
Back
|
FazBrowse Home
|
New Git URL