go-ceph/.devcontainer/devcontainer.json

52 lines
2.2 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/docker-existing-dockerfile
{
"name": "go-ceph",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
"dockerfile": "../testing/containers/ceph/Dockerfile",
"args": {
"CEPH_VERSION": "octopus"
}
},
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/ceph/go-ceph,type=bind,consistency=cached",
"workspaceFolder": "/go/src/github.com/ceph/go-ceph",
// Set *default* container specific settings.json values on container create.
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.toolsManagement.autoUpdate": true,
"go.useLanguageServer": true,
"go.goroot": "/opt/go",
"go.testEnvVars": {
"GODEBUG": "cgocheck=2"
},
"go.lintTool": "golangci-lint",
"go.buildTags": "ptrguard",
"go.testTags": "ptrguard",
"go.testFlags": [
"-v",
"-count=1"
],
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.go",
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
],
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
"mounts": [ "source=test_ceph_go_cache,target=/go,type=volume" ],
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}