|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/jekyll |
3 | 3 | { |
4 | | - "name": "Jekyll", |
5 | | - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 | | - "image": "mcr.microsoft.com/devcontainers/jekyll:bullseye" |
| 4 | + "name": "Jekyll", |
| 5 | + "image": "mcr.microsoft.com/devcontainers/jekyll", |
7 | 6 |
|
8 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
9 | | - // "features": {}, |
| 7 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 8 | + "features": { |
| 9 | + "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { |
| 10 | + "packages": "build-essential,imagemagick,inotify-tools,jupyter-nbconvert,procps,ruby-full,zlib1g-dev" |
| 11 | + }, |
| 12 | + "ghcr.io/devcontainers-extra/features/prettier:1": {} |
| 13 | + }, |
10 | 14 |
|
11 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
12 | | - // "forwardPorts": [], |
| 15 | + // Optionally: run jekyll serve automatically on container entering using the Docker entrypoint |
| 16 | + // "postAttachCommand": "bundle install; ./bin/entry_point.sh", |
13 | 17 |
|
14 | | - // Uncomment the next line to run commands after the container is created. |
15 | | - // "postCreateCommand": "jekyll --version" |
| 18 | + "customizations": { |
| 19 | + "vscode": { |
| 20 | + "extensions": ["esbenp.prettier-vscode", "sissel.shopify-liquid", "yzhang.markdown-all-in-one"], |
| 21 | + "settings": { |
| 22 | + // use prettier code formatter as default formatter |
| 23 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 24 | + "prettier.configPath": ".prettierrc", |
| 25 | + "editor.formatOnSave": true |
| 26 | + } |
| 27 | + } |
| 28 | + }, |
16 | 29 |
|
17 | | - // Configure tool-specific properties. |
18 | | - // "customizations": {}, |
19 | | - |
20 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
21 | | - // "remoteUser": "root" |
| 30 | + "remoteUser": "vscode" |
22 | 31 | } |
0 commit comments