|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/hugo |
| 3 | +{ |
| 4 | + "name": "Hugo (Community)", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + "args": { |
| 8 | + // Update VARIANT to pick hugo variant. |
| 9 | + // Example variants: hugo, hugo_extended |
| 10 | + // Rebuild the container if it already exists to update. |
| 11 | + "VARIANT": "hugo_extended", |
| 12 | + // Update VERSION to pick a specific hugo version. |
| 13 | + // Example versions: latest, 0.73.0, 0,71.1 |
| 14 | + // Rebuild the container if it already exists to update. |
| 15 | + "VERSION": "latest", |
| 16 | + // Update NODE_VERSION to pick the Node.js version: 12, 14 |
| 17 | + "NODE_VERSION": "14" |
| 18 | + } |
| 19 | + }, |
| 20 | + |
| 21 | + // Configure tool-specific properties. |
| 22 | + "customizations": { |
| 23 | + // Configure properties specific to VS Code. |
| 24 | + "vscode": { |
| 25 | + // Set *default* container specific settings.json values on container create. |
| 26 | + "settings": { |
| 27 | + "html.format.templating": true |
| 28 | + }, |
| 29 | + |
| 30 | + // Add the IDs of extensions you want installed when the container is created. |
| 31 | + "extensions": [ |
| 32 | + "bungcip.better-toml", |
| 33 | + "davidanson.vscode-markdownlint" |
| 34 | + ] |
| 35 | + } |
| 36 | + }, |
| 37 | + |
| 38 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 39 | + "forwardPorts": [ |
| 40 | + 1313 |
| 41 | + ], |
| 42 | + |
| 43 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 44 | + // "postCreateCommand": "uname -a", |
| 45 | + |
| 46 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 47 | + "remoteUser": "node" |
| 48 | +} |
0 commit comments