Skip to content

Commit eeffd50

Browse files
authored
Added Dev Container support (#942)
For ease of development.
1 parent 77feaf0 commit eeffd50

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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/debian
3+
{
4+
"name": "development-environment",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:bookworm",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/ruby:1": {
10+
"version": "3.1"
11+
},
12+
"ghcr.io/devcontainers/features/common-utils:2": {
13+
"installZsh": true,
14+
"configureZshAsDefaultShell": true,
15+
"installOhMyZsh": true
16+
},
17+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
18+
"ghcr.io/devcontainers/features/github-cli:1": {},
19+
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
20+
"packages": "fzf grc shellcheck shfmt zoxide"
21+
},
22+
"ghcr.io/devcontainers-contrib/features/fd:1": {},
23+
"ghcr.io/devcontainers-contrib/features/ripgrep:1": {},
24+
"ghcr.io/devcontainers-contrib/features/starship:1": {},
25+
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {
26+
"plugins": "dirhistory docker fd fzf git-escape-magic gh git grc ripgrep starship sudo zoxide zsh-autosuggestions zsh-syntax-highlighting",
27+
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting.git"
28+
}
29+
},
30+
31+
"customizations": {
32+
"vscode": {
33+
"extensions": [
34+
"DavidAnson.vscode-markdownlint",
35+
"donjayamanne.githistory",
36+
"EditorConfig.EditorConfig",
37+
"github.vscode-github-actions",
38+
"GitHub.vscode-pull-request-github",
39+
"ldez.ignore-files",
40+
"me-dutour-mathieu.vscode-github-actions",
41+
"oderwat.indent-rainbow",
42+
"streetsidesoftware.code-spell-checker",
43+
"marcostazi.VS-code-vagrantfile",
44+
"ginfuru.ginfuru-vscode-jekyll-syntax",
45+
"timonwong.shellcheck",
46+
"foxundermoon.shell-format"
47+
]
48+
}
49+
},
50+
51+
"remoteEnv": {
52+
"PATH": "/home/vscode/.local/bin:${containerEnv:PATH}"
53+
},
54+
55+
56+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
57+
"forwardPorts": [4000]
58+
59+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
60+
// "remoteUser": "root"
61+
}

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ end_of_line = lf
2121
# Match shfmt
2222
[*.sh]
2323
indent_style = tab
24+
25+
# Follow VS Code defaults
26+
[devcontainer.json]
27+
indent_style = tab

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ updates:
1010
schedule:
1111
interval: weekly
1212
day: saturday
13+
- package-ecosystem: devcontainers
14+
directory: "/"
15+
schedule:
16+
interval: weekly
17+
day: saturday

0 commit comments

Comments
 (0)