mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-11 23:12:39 -07:00
Updated devcontainer.
This commit is contained in:
parent
06147db215
commit
31c6551cce
1 changed files with 53 additions and 16 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue