smartctl_exporter/.devcontainer/devcontainer.json
David Randall 715f3a465c Add: Devcontainer support
Signed-off-by: David Randall <David@NiceGuyIT.biz>
2023-11-21 01:05:13 +00:00

38 lines
1.1 KiB
JSON

{
"name": "Default dev container",
"image": "mcr.microsoft.com/devcontainers/go:1.20",
// GitHub's devcontainers are in increments of 2 core/8GB memory. Specifying less will use the minimum.
// https://docs.github.com/en/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#pricing-for-paid-usage
"hostRequirements": {
"cpus": 1,
"memory": "4gb"
},
"waitFor": "onCreateCommand",
"updateContentCommand": {
"install": "sudo apt-get update && sudo apt-get install --no-install-recommends -y smartmontools vim",
// Modify the environment to provide better developer experience.
"modify-environment": "${PWD}/scripts/modify-environment.sh"
},
"postCreateCommand": {
},
"customizations": {
"codespaces": {
// Open files upon start
"openFiles": [
"metrics.go",
"smartctl.go"
]
},
"vscode": {
// VS Code extensions to install
"extensions": [
"streetsidesoftware.code-spell-checker",
"timonwong.shellcheck",
"golang.Go"
],
"settings": {
"shellcheck.customArgs": ["-x"]
}
}
}
}