Skip to content

Commit

Permalink
Added Dev Container support (#942)
Browse files Browse the repository at this point in the history
For ease of development.
  • Loading branch information
freemanjp authored Feb 18, 2024
1 parent 77feaf0 commit eeffd50
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "development-environment",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bookworm",

"features": {
"ghcr.io/devcontainers/features/ruby:1": {
"version": "3.1"
},
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
"packages": "fzf grc shellcheck shfmt zoxide"
},
"ghcr.io/devcontainers-contrib/features/fd:1": {},
"ghcr.io/devcontainers-contrib/features/ripgrep:1": {},
"ghcr.io/devcontainers-contrib/features/starship:1": {},
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {
"plugins": "dirhistory docker fd fzf git-escape-magic gh git grc ripgrep starship sudo zoxide zsh-autosuggestions zsh-syntax-highlighting",
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting.git"
}
},

"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"donjayamanne.githistory",
"EditorConfig.EditorConfig",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"ldez.ignore-files",
"me-dutour-mathieu.vscode-github-actions",
"oderwat.indent-rainbow",
"streetsidesoftware.code-spell-checker",
"marcostazi.VS-code-vagrantfile",
"ginfuru.ginfuru-vscode-jekyll-syntax",
"timonwong.shellcheck",
"foxundermoon.shell-format"
]
}
},

"remoteEnv": {
"PATH": "/home/vscode/.local/bin:${containerEnv:PATH}"
},


// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [4000]

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ end_of_line = lf
# Match shfmt
[*.sh]
indent_style = tab

# Follow VS Code defaults
[devcontainer.json]
indent_style = tab
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ updates:
schedule:
interval: weekly
day: saturday
- package-ecosystem: devcontainers
directory: "/"
schedule:
interval: weekly
day: saturday

0 comments on commit eeffd50

Please sign in to comment.