generated from bitcoin-sv/template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.devcontainer.json
More file actions
40 lines (40 loc) · 1.3 KB
/
.devcontainer.json
File metadata and controls
40 lines (40 loc) · 1.3 KB
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
{
"customizations": {
"vscode": {
"extensions": [
"golang.Go",
"github.vscode-github-actions",
"eamodio.gitlens"
],
"settings": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.formatOnSave": true,
"go.lintTool": "golangci-lint",
"go.toolsEnvVars": {
"GOFLAGS": "-buildvcs=false"
},
"go.useLanguageServer": true
}
}
},
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye",
"mounts": [
"type=cache,target=/home/vscode/.cache/go-build",
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],
"name": "go-script-templates dev container",
"postCreateCommand": "magex lint && magex vet && magex test",
"postStartCommand": "go install github.com/mrz1836/mage-x/cmd/magex@latest",
"remoteUser": "vscode",
"runArgs": [
"--cap-drop=ALL",
"--security-opt",
"no-new-privileges:true"
]
}