Skip to content

Commit d1e25f2

Browse files
devcontainer.json Updates (microsoft#59694)
1 parent 82e4682 commit d1e25f2

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

Diff for: .devcontainer/Dockerfile

-7
This file was deleted.

Diff for: .devcontainer/devcontainer.json

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
13
{
24
"name": "Node.js",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
"VARIANT": "18"
7-
}
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {
10+
"ghcr.io/devcontainers/features/go:1": {}
11+
},
12+
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
// "forwardPorts": [],
15+
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postCreateCommand": {
18+
"Configure Build Tools": "sudo corepack enable npm; sudo npm install -g hereby; npm ci",
19+
"Install pprof": "go install github.com/google/pprof@latest",
20+
"Install Graphviz": "sudo apt install graphviz"
821
},
22+
23+
// Configure tool-specific properties.
924
"customizations": {
1025
"vscode": {
1126
"settings": {
@@ -23,5 +38,7 @@
2338
]
2439
}
2540
},
41+
42+
// More info: https://aka.ms/dev-containers-non-root.
2643
"remoteUser": "node"
2744
}

Diff for: .github/dependabot.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# To get started with Dependabot version updates, you'll need to specify which
22
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
3+
# Please see the documentation for more information:
44
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
56

67
version: 2
78
updates:
@@ -13,3 +14,8 @@ updates:
1314
github-actions:
1415
patterns:
1516
- '*'
17+
18+
- package-ecosystem: 'devcontainers'
19+
directory: '/'
20+
schedule:
21+
interval: weekly

0 commit comments

Comments
 (0)