From a6b229d2de71fcdd89376d744c5a658204b7cc22 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sun, 3 Mar 2024 13:54:39 +0000 Subject: [PATCH] Added Dev-container support (#598) For ease of development. --- .devcontainer/devcontainer.json | 43 +++++++++++++++++++++++++++++++++ .github/dependabot.yml | 5 ++++ 2 files changed, 48 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..2f69c42f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,43 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/java +{ + "name": "ktlin-maven-plugin", + "image": "mcr.microsoft.com/devcontainers/java:1-11-bookworm", + + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "none", + "installMaven": "true", + "installGradle": "false" + }, + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": true, + "configureZshAsDefaultShell": true, + "installOhMyZsh": true + }, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers-contrib/features/apt-get-packages:1": { + "packages": "fzf grc shellcheck zoxide" + }, + "ghcr.io/devcontainers-contrib/features/fd:1": {}, + "ghcr.io/devcontainers-contrib/features/ripgrep:1": {}, + "ghcr.io/devcontainers-contrib/features/shfmt:1": {}, + "ghcr.io/devcontainers-contrib/features/starship:1": {}, + "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { + "plugins": "dirhistory 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" + } + } + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "java -version", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 86eefc1c..a20f4535 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -63,3 +63,8 @@ updates: schedule: interval: weekly day: saturday +- package-ecosystem: devcontainers + directory: "/" + schedule: + interval: weekly + day: saturday