|
1 | | -// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | | -// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll |
3 | 1 | { |
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:2-bullseye", |
7 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
8 | | - // "features": {}, |
9 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
10 | | - // "forwardPorts": [], |
11 | | - // Uncomment the next line to run commands after the container is created. |
12 | | - "postCreateCommand": "zsh scripts/devcontainer/postcreatecommand.sh", |
13 | | - "postStartCommand": "zsh scripts/devcontainer/poststartcommand.sh", |
14 | | - "forwardPorts": [4000], |
15 | | - // Configure tool-specific properties. |
| 2 | + "build": { |
| 3 | + "dockerfile": "Dockerfile" |
| 4 | + }, |
16 | 5 | "customizations": { |
17 | 6 | "codespaces": { |
18 | | - "openFiles": ["README.md", ".github/SECURITY.md", "docs/index.md"] |
| 7 | + "openFiles": [ |
| 8 | + "README.md", |
| 9 | + ".github/SECURITY.md", |
| 10 | + "docs/index.md" |
| 11 | + ] |
19 | 12 | }, |
20 | 13 | "vscode": { |
21 | | - // Set *default* container specific settings.json values on container create. |
22 | | - "settings": { |
23 | | - "autoOpenWorkspace.enableAutoOpenIfSingleWorkspace": true, |
24 | | - "editor.formatOnSave": true, |
25 | | - "files.insertFinalNewline": true, |
26 | | - "[makefile]": { |
27 | | - "editor.insertSpaces": false, |
28 | | - "editor.detectIndentation": false |
29 | | - } |
30 | | - }, |
31 | | - // Add the IDs of extensions you want installed when the container is created. |
32 | 14 | "extensions": [ |
33 | | - "zoma.vscode-auto-open-workspace", |
34 | 15 | "alefragnani.bookmarks", |
35 | 16 | "davidanson.vscode-markdownlint", |
36 | 17 | "dbaeumer.vscode-eslint", |
37 | 18 | "donjayamanne.githistory", |
38 | | - "eamodio.gitlens", |
39 | 19 | "editorconfig.editorconfig", |
40 | 20 | "esbenp.prettier-vscode", |
41 | 21 | "github.codespaces", |
|
45 | 25 | "github.vscode-pull-request-github", |
46 | 26 | "hediet.vscode-drawio", |
47 | 27 | "johnpapa.vscode-peacock", |
| 28 | + "joshx.workspace-terminals", |
| 29 | + "maattdd.gitless", |
48 | 30 | "mhutchie.git-graph", |
49 | 31 | "ms-azuretools.vscode-docker", |
50 | 32 | "ms-vscode-remote.remote-containers", |
|
54 | 36 | "ms-vsliveshare.vsliveshare", |
55 | 37 | "redhat.vscode-xml", |
56 | 38 | "streetsidesoftware.code-spell-checker-british-english", |
| 39 | + "takumii.markdowntable", |
57 | 40 | "tamasfe.even-better-toml", |
58 | 41 | "tomoki1207.pdf", |
59 | 42 | "vscode-icons-team.vscode-icons", |
|
62 | 45 | "yzane.markdown-pdf", |
63 | 46 | "yzhang.dictionary-completion", |
64 | 47 | "yzhang.markdown-all-in-one", |
65 | | - "joshx.workspace-terminals", |
66 | | - "takumii.markdowntable" |
67 | | - ] |
| 48 | + "zoma.vscode-auto-open-workspace" |
| 49 | + ], |
| 50 | + "settings": { |
| 51 | + "[makefile]": { |
| 52 | + "editor.detectIndentation": false, |
| 53 | + "editor.insertSpaces": false |
| 54 | + }, |
| 55 | + "autoOpenWorkspace.enableAutoOpenIfSingleWorkspace": true, |
| 56 | + "editor.formatOnSave": true, |
| 57 | + "extensions.ignoreRecommendations": true, |
| 58 | + "files.insertFinalNewline": true |
| 59 | + } |
68 | 60 | } |
69 | 61 | }, |
70 | 62 | "features": { |
71 | 63 | "ghcr.io/devcontainers/features/aws-cli:1": { |
72 | 64 | "version": "latest" |
73 | 65 | }, |
| 66 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 67 | + "configureZshAsDefaultShell": true, |
| 68 | + "installOhMyZsh": true, |
| 69 | + "installOhMyZshConfig": true, |
| 70 | + "installZsh": true, |
| 71 | + "upgradePackages": true, |
| 72 | + "userGid": "automatic", |
| 73 | + "userUid": "automatic", |
| 74 | + "username": "automatic" |
| 75 | + }, |
74 | 76 | "ghcr.io/devcontainers/features/docker-in-docker:2": { |
75 | | - "moby": true, |
76 | 77 | "azureDnsAutoDetection": true, |
| 78 | + "dockerDashComposeVersion": "latest", |
77 | 79 | "installDockerBuildx": true, |
78 | 80 | "installDockerComposeSwitch": true, |
79 | | - "version": "latest", |
80 | | - "dockerDashComposeVersion": "latest" |
81 | | - }, |
82 | | - "ghcr.io/devcontainers/features/node:1": { |
83 | | - "nodeGypDependencies": true, |
84 | | - "version": "lts", |
85 | | - "nvmVersion": "latest" |
| 81 | + "moby": true, |
| 82 | + "version": "latest" |
86 | 83 | }, |
87 | 84 | "ghcr.io/devcontainers/features/github-cli:1": { |
88 | 85 | "installDirectlyFromGitHubRelease": true, |
89 | 86 | "version": "latest" |
90 | 87 | }, |
91 | | - "ghcr.io/devcontainers/features/common-utils:2": { |
92 | | - "installZsh": true, |
93 | | - "configureZshAsDefaultShell": true, |
94 | | - "installOhMyZsh": true, |
95 | | - "installOhMyZshConfig": true, |
96 | | - "upgradePackages": true, |
97 | | - "username": "automatic", |
98 | | - "userUid": "automatic", |
99 | | - "userGid": "automatic" |
| 88 | + "ghcr.io/devcontainers/features/node:1": { |
| 89 | + "nodeGypDependencies": true, |
| 90 | + "nvmVersion": "latest", |
| 91 | + "version": "lts" |
100 | 92 | } |
101 | | - } |
102 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
103 | | - // "remoteUser": "root" |
| 93 | + }, |
| 94 | + "forwardPorts": [ |
| 95 | + 4000 |
| 96 | + ], |
| 97 | + "name": "Jekyll", |
| 98 | + "postCreateCommand": "zsh scripts/devcontainer/postcreatecommand.sh", |
| 99 | + "postStartCommand": "zsh scripts/devcontainer/poststartcommand.sh", |
| 100 | + "runArgs": [ |
| 101 | + "--platform=linux/amd64" |
| 102 | + ] |
104 | 103 | } |
0 commit comments