mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-23 01:43:07 +01:00
715f3a465c
Signed-off-by: David Randall <David@NiceGuyIT.biz>
38 lines
1.1 KiB
JSON
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"]
|
|
}
|
|
}
|
|
}
|
|
}
|