forked from getanteon/anteon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
46 lines (46 loc) · 1.31 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
// 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.155.1/containers/go
{
"name": "Ddosify Open Source",
"build": {
"dockerfile": "Dockerfile.dev",
"context": "../"
},
"runArgs": [
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh-localhost:ro",
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--ipc",
"host",
"--network",
"ddosify",
"--hostname",
"ddosify"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go",
"go.toolsGopath": "/go",
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--config=${workspaceFolder}/.golangci.yml",
"--fast"
],
"files.eol": "\n"
},
"postCreateCommand": "mkdir -p ~/.ssh && cp -r ~/.ssh-localhost/* ~/.ssh && chmod 700 ~/.ssh && chmod 600 ~/.ssh/*",
"extensions": [
"golang.Go",
"eamodio.gitlens",
"premparihar.gotestexplorer"
],
"mounts": [
// "source=${env:HOME}/.zsh_history,target=/root/.zsh_history,type=bind,consistency=cached"
// "source=${env:HOME}/.bash_history,target=/root/.zsh_history,type=bind,consistency=cached"
]
}