1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-06 03:46:32 +01:00
Files
incus/.devcontainer/devcontainer.json
Lucas Bremgartner 9b998b2187 devcontainer: initial version
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
2025-01-09 21:52:19 +01:00

73 lines
1.8 KiB
JSON

{
"name": "Incus",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"766b.go-outliner",
"ms-azuretools.vscode-docker",
"ms-vscode.makefile-tools",
"github.vscode-github-actions",
"davidanson.vscode-markdownlint",
"shardulm94.trailing-spaces",
"Gruntfuggly.todo-tree"
],
"settings": {
"files.insertFinalNewline": true,
"go.goroot": "/usr/local/go",
"go.gopath": "/go",
"go.lintTool": "golangci-lint",
"go.lintOnSave": "package",
"go.lintFlags": [ "--fast" ],
"go.useLanguageServer": true,
"goOutliner.extendExplorerTab": true,
"gopls": {
"formatting.gofumpt": true,
"formatting.local": "github.com/lxc/incus",
"ui.diagnostic.staticcheck": false
},
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"search.exclude": {
"**/.git": true
}
}
}
},
"postCreateCommand": "go mod download",
"mounts": [
"source=incus_devcontainer_cache,target=/home/vscode/.cache,type=volume",
"source=incus_devcontainer_goroot,target=/go,type=volume"
],
"runArgs": [
"--privileged",
"-u",
"vscode",
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"-v", "${env:HOME}/.ssh:/home/vscode/.ssh:ro",
"--name", "${localEnv:USER}_incus_devcontainer"
],
"remoteUser": "vscode"
}