Skip to content

Commit 708ba8c

Browse files
committed
devops: add DevCotainer config
1 parent 84eaf8f commit 708ba8c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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-bookworm",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {},
10+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
11+
}
12+
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
// "forwardPorts": [],
15+
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
// "postCreateCommand": "java -version",
18+
19+
// Configure tool-specific properties.
20+
// "customizations": {},
21+
22+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
23+
// "remoteUser": "root"
24+
}

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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:
39
- package-ecosystem: "maven"
@@ -17,3 +23,15 @@ updates:
1723
allow:
1824
- dependency-type: "direct" # Optional: Only update direct dependencies
1925
- dependency-type: "indirect" # Optional: Only update indirect (transitive) dependencies
26+
- package-ecosystem: "devcontainers"
27+
directory: "/"
28+
schedule:
29+
interval: weekly
30+
- package-ecosystem: "github-actions"
31+
directory: "/"
32+
schedule:
33+
interval: "weekly"
34+
groups:
35+
actions:
36+
patterns:
37+
- "*"

0 commit comments

Comments
 (0)