Files
go/.devcontainer/devcontainer.json

31 lines
924 B
JSON
Raw Normal View History

2019-04-16 19:54:02 -07:00
{
2020-07-29 19:57:06 +09:00
"name": "Go",
"build": {
"dockerfile": "Dockerfile",
// Update the VARIANT arg to pick a version of Go
"args": { "VARIANT": "1" }
},
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
2020-07-29 19:57:06 +09:00
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"go.gopath": "/go",
"go.inferGopath": true,
"go.useLanguageServer": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go"
],
2020-07-25 01:38:41 +00:00
2020-07-29 19:57:06 +09:00
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [9000],
2020-07-25 01:38:41 +00:00
2020-07-29 19:57:06 +09:00
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
2020-07-29 19:57:06 +09:00
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}