Updated devcontainer.

This commit is contained in:
James Wells 2022-03-24 11:31:52 -07:00
parent 06147db215
commit 31c6551cce
Signed by: jwells
GPG key ID: 73196D10B8E65666

View file

@ -1,18 +1,55 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/go
{ {
"name": "GitHub Codespaces (Default)", "name": "Go",
"extensions": [ "build": {
"GitHub.vscode-pull-request-github", "dockerfile": "Dockerfile",
"golang.go", "args": {
"hashicorp.terraform", // Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
"wholroyd.hcl", // Append -bullseye or -buster to pin to an OS version.
"github.copilot", // Use -bullseye variants on local arm64/Apple Silicon.
"golang.Go" "VARIANT": "1.18-bullseye",
], // Options
"build": { "NODE_VERSION": "none"
"dockerfile": "Dockerfile", }
"args": { },
"VARIANT": "1.17", "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
"NODE_VERSION": "none"
} // Set *default* container specific settings.json values on container create.
}, "settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go",
"GitHub.copilot",
"GitHub.vscode-pull-request-github",
"wholroyd.hcl",
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [9000],
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
"portsAttributes": {
"9000": {
"label": "Hello Remote World",
"onAutoForward": "notify"
}
},
// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
// "otherPortsAttributes": {
// "onAutoForward": "silent"
// },
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
// Uncomment to connect as a non-root user. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
} }