Skip to content

Commit 3dc9325

Browse files
committed
devops: add DevCotainer config
1 parent 84eaf8f commit 3dc9325

File tree

2 files changed

+49
-17
lines changed

2 files changed

+49
-17
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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/java
3+
{
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "none",
11+
"installMaven": "true",
12+
"installGradle": "false"
13+
}
14+
}
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
// "forwardPorts": [],
18+
19+
// Use 'postCreateCommand' to run commands after the container is created.
20+
// "postCreateCommand": "java -version",
21+
22+
// Configure tool-specific properties.
23+
// "customizations": {},
24+
25+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
26+
// "remoteUser": "root"
27+
}

.github/dependabot.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
17
version: 2
28
updates:
3-
- package-ecosystem: "maven"
4-
directory: "/" # Location of the pom.xml file
5-
schedule:
6-
interval: "monthly"
7-
open-pull-requests-limit: 10
8-
groups:
9-
# Create a group of dependencies to be updated together in one pull request
10-
all:
11-
applies-to: version-updates
12-
patterns:
13-
- "*"
14-
update-types:
15-
- "minor"
16-
- "patch"
17-
allow:
18-
- dependency-type: "direct" # Optional: Only update direct dependencies
19-
- dependency-type: "indirect" # Optional: Only update indirect (transitive) dependencies
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
13+
- package-ecosystem: "devcontainers"
14+
directory: "/"
15+
schedule:
16+
interval: weekly
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "weekly"
21+
groups:
22+
actions:
23+
patterns:
24+
- "*"

0 commit comments

Comments
 (0)