mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
41 lines
1.4 KiB
JSON
41 lines
1.4 KiB
JSON
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.0/containers/go
|
||
|
{
|
||
|
"name": "Go",
|
||
|
"build": {
|
||
|
"dockerfile": "Dockerfile",
|
||
|
"context": "../",
|
||
|
"args": {
|
||
|
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.15
|
||
|
"VARIANT": "1.16",
|
||
|
// Options
|
||
|
"INSTALL_NODE": "false",
|
||
|
"NODE_VERSION": "lts/*"
|
||
|
}
|
||
|
},
|
||
|
"runArgs": [ "--cap-add=SYS_PTRACE", "--cap-add=SYS_ADMIN", "--shm-size=2G", "--security-opt", "seccomp=unconfined" ],
|
||
|
|
||
|
// Set *default* container specific settings.json values on container create.
|
||
|
"settings": {
|
||
|
"terminal.integrated.shell.linux": "/bin/bash",
|
||
|
"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"
|
||
|
],
|
||
|
|
||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||
|
"appPort": ["3000:3000", "3001:3001/udp", "3002:3002/udp", "3003:3003/udp", "3004:3004/udp"],
|
||
|
|
||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||
|
// "postCreateCommand": "go version",
|
||
|
|
||
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||
|
"remoteUser": "neko"
|
||
|
}
|