Files
go/.devcontainer/devcontainer.json

41 lines
1.3 KiB
JSON
Raw Normal View History

// 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
2019-04-16 19:54:02 -07:00
{
2020-07-25 01:38:41 +00:00
"name": "Go",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
2024-06-13 15:16:44 +00:00
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
2022-05-17 12:41:55 -07:00
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
2022-05-17 12:41:55 -07:00
"extensions": [
"streetsidesoftware.code-spell-checker"
2022-05-17 12:41:55 -07:00
]
}
},
2020-07-25 01:38:41 +00:00
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [9000],
2020-07-25 01:38:41 +00:00
// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
2021-03-16 16:08:38 +00:00
"portsAttributes": {
"9000": {
"label": "Hello Remote World",
"onAutoForward": "notify"
}
2025-10-19 09:20:58 +00:00
},
"postCreateCommand": "go run server.go"
2021-04-16 20:30:01 +00:00
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
2020-08-31 02:25:45 +00:00
}