2022-12-23 08:31:53 -06:00
|
|
|
// 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",
|
2022-12-23 08:31:53 -06:00
|
|
|
// 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",
|
2022-12-23 08:31:53 -06:00
|
|
|
|
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
|
|
|
// "features": {},
|
2019-08-26 13:59:25 -07:00
|
|
|
|
2022-05-17 12:41:55 -07:00
|
|
|
// Configure tool-specific properties.
|
|
|
|
|
"customizations": {
|
|
|
|
|
// Configure properties specific to VS Code.
|
|
|
|
|
"vscode": {
|
2022-12-23 08:31:53 -06:00
|
|
|
"settings": {},
|
2022-05-17 12:41:55 -07:00
|
|
|
"extensions": [
|
2022-12-23 08:31:53 -06:00
|
|
|
"streetsidesoftware.code-spell-checker"
|
2022-05-17 12:41:55 -07:00
|
|
|
]
|
|
|
|
|
}
|
2019-08-26 13:59:25 -07:00
|
|
|
},
|
2020-07-25 01:38:41 +00:00
|
|
|
|
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2021-01-21 16:49:31 +00:00
|
|
|
// "forwardPorts": [9000],
|
2020-07-25 01:38:41 +00:00
|
|
|
|
2022-12-23 08:31:53 -06: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",
|
|
|
|
|
|
2022-12-23 08:31:53 -06:00
|
|
|
// 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
|
|
|
}
|