-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
48 lines (43 loc) · 1.3 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// 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.191.1/containers/go
{
"name": "Go Dev",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Choices: https://github.com/KEINOS/VSCode-Dev-Container-Go/pkgs/container/vscode-dev-container-go
"VARIANT": "latest"
}
},
"runArgs": [
"--rm",
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go",
"terminal.integrated.profiles.linux": {
"bash (login)": {
"path": "/bin/bash",
"args": []
}
},
"shellformat.path": "/go/bin/shfmt"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go",
"foxundermoon.shell-format"
],
// 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 mod download",
// Comment out to connect as root to debug container.
// "remoteUser": "root"
}