mirror of https://github.com/0xERR0R/blocky.git
62 lines
1.9 KiB
JSON
62 lines
1.9 KiB
JSON
{
|
|
"name": "blocky development",
|
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/go:1": {},
|
|
"ghcr.io/jungaretti/features/make:1": {},
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
|
"dockerDashComposeVersion": "v2"
|
|
},
|
|
"ghcr.io/devcontainers/features/python:1": {}
|
|
},
|
|
"remoteEnv": {
|
|
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}",
|
|
"WORKSPACE_FOLDER": "${containerWorkspaceFolder}",
|
|
"GENERATE_LCOV": "true"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"golang.go",
|
|
"esbenp.prettier-vscode",
|
|
"yzhang.markdown-all-in-one",
|
|
"joselitofilho.ginkgotestexplorer",
|
|
"fsevenm.run-it-on",
|
|
"markis.code-coverage",
|
|
"tooltitudeteam.tooltitude"
|
|
],
|
|
"settings": {
|
|
"go.lintFlags": ["--config=${containerWorkspaceFolder}/.golangci.yml"],
|
|
"go.alternateTools": {
|
|
"go-langserver": "gopls"
|
|
},
|
|
"[go]": {
|
|
"editor.defaultFormatter": "golang.go"
|
|
},
|
|
"[json][jsonc]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[markdown]": {
|
|
"editor.defaultFormatter": "yzhang.markdown-all-in-one",
|
|
"editor.unicodeHighlight.ambiguousCharacters": false,
|
|
"editor.unicodeHighlight.invisibleCharacters": false,
|
|
"diffEditor.ignoreTrimWhitespace": false,
|
|
"editor.wordWrap": "on",
|
|
"editor.quickSuggestions": {
|
|
"comments": "off",
|
|
"strings": "off",
|
|
"other": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"mounts": [
|
|
"type=bind,readonly,source=/etc/localtime,target=/usr/share/host/localtime",
|
|
"type=bind,readonly,source=/etc/timezone,target=/usr/share/host/timezone",
|
|
"type=volume,source=blocky-pkg_cache,target=/go/pkg"
|
|
],
|
|
"postCreateCommand": "sudo chmod +x .devcontainer/scripts/*.sh",
|
|
"postStartCommand": "sh .devcontainer/scripts/postStart.sh"
|
|
}
|