-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer-example.json
More file actions
37 lines (37 loc) · 1.24 KB
/
devcontainer-example.json
File metadata and controls
37 lines (37 loc) · 1.24 KB
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
{
"name": "Go",
"image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie",
"workspaceFolder": "/hcloud-ddns-fw",
"workspaceMount": "source=${localWorkspaceFolder},target=/hcloud-ddns-fw,type=bind",
"runArgs": ["--hostname", "go-devcontainer", "--name", "go-devcontainer"],
"postCreateCommand": "echo \"alias ll='ls -alF'\" >> ~/.bashrc",
"mounts": [
"type=bind,source=${localEnv:HOME}/.ssh/id_ed25519,target=/home/vscode/.ssh/id_ed25519,readonly",
"type=bind,source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,readonly",
"type=bind,source=/run/host-services/ssh-auth.sock,target=/ssh-agent"
],
"containerEnv": {
"GOPATH": "/hcloud-ddns-fw/.cache/go",
"GOMODCACHE": "/hcloud-ddns-fw/.cache/go/pkg/mod",
"GOCACHE": "/hcloud-ddns-fw/.cache/go-build",
"SSH_AUTH_SOCK": "/ssh-agent",
"HCLOUD_TOKEN": "${env:HCLOUD_TOKEN}",
"LOGLEVEL": "INFO",
"TZ": "Europe/Berlin",
"UPDATE_INTERVAL": "300",
"IP_MODE": "IPv4",
"HTTP_TIMEOUT": "30",
"DEVMODE": "true"
},
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"redhat.vscode-yaml",
"eamodio.gitlens",
"golang.go",
"esbenp.prettier-vscode"
]
}
}
}