Skip to content

Commit d4c1032

Browse files
add devcontainer config
1 parent 419e66c commit d4c1032

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "Go",
3+
"image": "mcr.microsoft.com/devcontainers/go:0-1-bullseye",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {
6+
"version": "lts"
7+
},
8+
"ghcr.io/devcontainers/features/common-utils:1": {},
9+
"ghcr.io/devcontainers/features/go:1": {},
10+
"ghcr.io/devcontainers/features/hugo:1": {},
11+
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
12+
"ghcr.io/guiyomh/features/golangci-lint:0": {},
13+
"ghcr.io/guiyomh/features/goreleaser:0": {},
14+
"ghcr.io/guiyomh/features/gotestsum:0": {}
15+
},
16+
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
// Configure properties specific to VS Code.
20+
"vscode": {
21+
// Set *default* container specific settings.json values on container create.
22+
"settings": {
23+
"go.toolsManagement.checkForUpdates": "local",
24+
"go.useLanguageServer": true,
25+
"go.gopath": "/go"
26+
}
27+
}
28+
}
29+
30+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
31+
// "forwardPorts": [],
32+
33+
// Use 'postCreateCommand' to run commands after the container is created.
34+
// "postCreateCommand": "go version",
35+
36+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
37+
// "remoteUser": "root"
38+
}

0 commit comments

Comments
 (0)