Skip to content

Commit a675a8b

Browse files
committed
Add initial devcontainer
1 parent f77bb49 commit a675a8b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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/go
3+
{
4+
"name": "Go",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/github-cli:1": {
9+
"installDirectlyFromGitHubRelease": true,
10+
"version": "latest"
11+
}
12+
},
13+
// Features to add to the dev container. More info: https://containers.dev/features.
14+
// "features": {},
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
// Use 'postCreateCommand' to run commands after the container is created.
18+
// "postCreateCommand": "go version",
19+
// Configure tool-specific properties.
20+
"customizations": {
21+
// Configure properties specific to VS Code.
22+
"vscode": {
23+
// Add the IDs of extensions you want installed when the container is created.
24+
"extensions": [
25+
"golang.go"
26+
]
27+
}
28+
}
29+
30+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
31+
// "remoteUser": "root"
32+
}

0 commit comments

Comments
 (0)