go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/.devcontainer/devcontainer.json (about) 1 // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: 2 // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/go 3 { 4 "name": "Go", 5 "build": { 6 "dockerfile": "Dockerfile", 7 "args": { 8 // Update the VARIANT arg to pick a version of Go: 1, 1.19, 1.18 9 // Append -bullseye or -buster to pin to an OS version. 10 // Use -bullseye variants on local arm64/Apple Silicon. 11 "VARIANT": "1.19", 12 // Options 13 "NODE_VERSION": "none" 14 } 15 }, 16 "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], 17 18 // Configure tool-specific properties. 19 "customizations": { 20 // Configure properties specific to VS Code. 21 "vscode": { 22 // Set *default* container specific settings.json values on container create. 23 "settings": { 24 "go.toolsManagement.checkForUpdates": "local", 25 "go.useLanguageServer": true, 26 "go.gopath": "/go" 27 }, 28 29 // Add the IDs of extensions you want installed when the container is created. 30 "extensions": [ 31 "golang.Go" 32 ] 33 } 34 }, 35 36 // Use 'forwardPorts' to make a list of ports inside the container available locally. 37 // "forwardPorts": [], 38 39 // Use 'postCreateCommand' to run commands after the container is created. 40 // "postCreateCommand": "go version", 41 42 // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. 43 "remoteUser": "vscode", 44 "features": { 45 "git": "latest" 46 } 47 }