-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
42 lines (42 loc) · 1.06 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
{
"name": "hugomods/hugo:git",
"build": {
"dockerfile": "Dockerfile"
},
"remoteEnv": {
"SSH_AUTH_SOCK": "/tmp/ssh-agent.socket"
},
"portsAttributes": {
"1313": {
"label": "Hugo Port",
"protocol": "http",
"onAutoForward": "openBrowserOnce",
"requireLocalPort": true,
"elevateIfNeeded": true
}
},
"forwardPorts": [
1313
],
"postCreateCommand": {
"git-submodule": "git pull && git submodule update --init --remote --recursive"
},
"postStartCommand": {
"git-update": "git pull && git submodule update --remote",
"start": "hugo server --buildDrafts --buildExpired --buildFuture --navigateToChanged"
},
"mounts": [
"source=profile,target=/root,type=volume",
"target=/root/.vscode-server,type=volume",
"source=/run/user/1000/ssh-agent.socket,target=/tmp/ssh-agent.socket,type=bind,consistency=cached,ro"
],
"customizations": {
"vscode": {
"extensions": [
"k--kato.intellij-idea-keybindings",
"redhat.vscode-yaml",
"DotJoshJohnson.xml"
]
}
}
}