1
1
{
2
+ "name" : " Hugo (Community)" ,
3
+ "build" : {
4
+ "dockerfile" : " Dockerfile" ,
5
+ "args" : {
6
+ // Update VARIANT to pick hugo variant.
7
+ // Example variants: hugo, hugo_extended
8
+ // Rebuild the container if it already exists to update.
9
+ "VARIANT" : " hugo_extended" ,
10
+ // Update VERSION to pick a specific hugo version.
11
+ // Example versions: latest, 0.73.0, 0,71.1
12
+ // Rebuild the container if it already exists to update.
13
+ "VERSION" : " latest" ,
14
+ // Update NODE_VERSION to pick the Node.js version: 12, 14
15
+ "NODE_VERSION" : " 14"
16
+ }
17
+ },
2
18
"hostRequirements" : {
3
- "cpus" : 4 ,
4
- "memory" : " 16gb" ,
5
- "storage" : " 32gb"
6
- },
7
- "image" : " mcr.microsoft.com/devcontainers/universal:2" ,
8
- "features" : {
9
- },
10
- "postCreateCommand" : " hugo server -D -F --baseURL \" https://$CODESPACE_NAME-1313.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN/\" -liveReloadPort=443 --appendPort=false --bind=0.0.0.0"
11
- }
19
+ "cpus" : 4 ,
20
+ "memory" : " 16gb" ,
21
+ "storage" : " 32gb"
22
+ },
23
+ // Configure tool-specific properties.
24
+ "customizations" : {
25
+ // Configure properties specific to VS Code.
26
+ "vscode" : {
27
+ // Set *default* container specific settings.json values on container create.
28
+ "settings" : {
29
+ "html.format.templating" : true
30
+ },
31
+
32
+ // Add the IDs of extensions you want installed when the container is created.
33
+ "extensions" : [
34
+ " bungcip.better-toml" ,
35
+ " davidanson.vscode-markdownlint"
36
+ ]
37
+ }
38
+ },
39
+
40
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
41
+ "forwardPorts" : [
42
+ 1313
43
+ ],
44
+
45
+ // Use 'postCreateCommand' to run commands after the container is created.
46
+ "postCreateCommand" : " hugo server -D -F --baseURL \" https://$CODESPACE_NAME-1313.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN/\" -liveReloadPort=443 --appendPort=false --bind=0.0.0.0 --logLevel=debug" ,
47
+
48
+
49
+ // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50
+ "remoteUser" : " root"
51
+ }
0 commit comments