Skip to content

Commit b8abd80

Browse files
authored
Test hostRequirements in devcontainer
1 parent d77596b commit b8abd80

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,12 @@
3232
"postCreateCommand": "npm ci && npm run build",
3333

3434
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35-
"remoteUser": "node"
35+
"remoteUser": "node",
36+
37+
// Test hostRequirements setting for machine types - currently undocumented
38+
"hostRequirements": {
39+
"cpus": 8,
40+
"memory": "8gb", // otherwise is bytes - allows for other units like mb, or k
41+
"storage": "32gb" // otherwise is bytes - allows for other units like tb, or mb, or k
42+
}
3643
}

0 commit comments

Comments
 (0)