Files
go-in-devcontainer/.devcontainer/devcontainer.json

58 lines
1.7 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go .
{
"name": "Go dev container",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// "image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie"
"build" : {
"dockerfile": "Dockerfile",
"options": [
"-t=godev"
]
},
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/app,type=bind,consistency=cached",
"workspaceFolder": "/home/vscode/app",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"zsh (login)": {
"path": "zsh",
"icon": "terminal-linux",
"args": ["-l"]
}
},
"terminal.integrated.defaultProfile.linux": "zsh (login)"
},
"extensions": [
"golang.go",
"ms-vscode-remote.remote-containers",
"aaron-bond.better-comments",
"qwtel.sqlite-viewer",
"oderwat.indent-rainbow",
"jinliming2.vscode-go-template",
"tamasfe.even-better-toml",
"mechatroner.rainbow-csv",
"Gruntfuggly.todo-tree",
"eamodio.gitlens"
]
},
"extensions": [
]
},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "vscode"
}