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
|
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile
{
"name": "Dev Dockerfile",
"dockerFile": "Dockerfile",
"context": "..",
// The optional 'runArgs' property can be used to specify additional runtime arguments.
"runArgs": [
// Enable go debugger
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
// Enable SSH for git
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh-localhost:ro"
],
"postCreateCommand": "mkdir -p /root/.ssh && cp -r /root/.ssh-localhost/* /root/.ssh && chmod 700 /root/.ssh && chmod 600 /root/.ssh/*",
"settings": {
"files.eol": "\n",
"terminal.integrated.shell.linux": "/bin/bash",
},
"extensions": [
"golang.go",
"hashicorp.terraform",
"ms-vscode.powershell",
"ms-azuretools.vscode-docker",
"ms-vsliveshare.vsliveshare",
"streetsidesoftware.code-spell-checker",
"eamodio.gitlens",
"yzhang.markdown-all-in-one",
"davidanson.vscode-markdownlint"
]
}
|