Files

36 lines
1.3 KiB
JSON

// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/go
{
"name": "Go",
"dockerComposeFile":["docker-compose.yaml"],
"service": "golang",
"workspaceFolder": "/go/src/core-networkmanager",
"shutdownAction": "stopCompose",
"runArgs": [
// Uncomment the next line to use a non-root user. On Linux, this will prevent
// new files getting created as root, but you may need to update the USER_UID
// and USER_GID in .devcontainer/Dockerfile to match your user if not 1000.
// "-u", "vscode",
"--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"
],
// Use 'settings' to set *default* container specific settings.json values on container create.
// You can edit these settings after create using File > Preferences > Settings > Remote.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"go.gopath": "/go"
},
// Uncomment the next line if you want to publish any ports.
//"appPort": [8080],
// Uncomment the next line to run commands after the container is created.
//"postCreateCommand": "echo ${workspaceFolderBasename}",
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"ms-vscode.go",
"casualjim.gotemplate"
]
}