From 0810b4ce2a7c2268b40455ef8747bc94c6de594d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sun, 16 Mar 2025 09:12:45 +0000 Subject: [PATCH 1/2] devops: add DevCotainer config --- .devcontainer/devcontainer.json | 28 ++++++++++++++++++++++++++++ .github/dependabot.yml | 18 ++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..0163c60ab --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +// 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": "Java", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/java:1-21-bookworm", + + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "none", + "installGradle": "false", + "installMaven": "true" + }, + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} + } + + // 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 1734ab54e..de1a05206 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,9 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + version: 2 updates: - package-ecosystem: "maven" @@ -17,3 +23,15 @@ updates: allow: - dependency-type: "direct" # Optional: Only update direct dependencies - dependency-type: "indirect" # Optional: Only update indirect (transitive) dependencies + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions: + patterns: + - "*" From 8f739152fe99eda461c9aae0ef9409dbb2ac69bc Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 17 Mar 2025 19:01:48 +0100 Subject: [PATCH 2/2] revert dependabot --- .github/dependabot.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index de1a05206..1734ab54e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,9 +1,3 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for more information: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates -# https://containers.dev/guide/dependabot - version: 2 updates: - package-ecosystem: "maven" @@ -23,15 +17,3 @@ updates: allow: - dependency-type: "direct" # Optional: Only update direct dependencies - dependency-type: "indirect" # Optional: Only update indirect (transitive) dependencies - - package-ecosystem: "devcontainers" - directory: "/" - schedule: - interval: weekly - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - groups: - actions: - patterns: - - "*"