Skip to content

Commit d5b2ec9

Browse files
Update devcontainer.json and add Dependabot for devcontainer's version updates (#1742)
* Update devcontainer.json Fix Java Version issues and avoid additional work in changing Java versions and SDK versions. Preinstalls pnpm, yarn, nvm, and node.js to LTS. Along with the Android SDK platform at `35` and build tools at `35.0.0` * Create dependabot.yml
1 parent 6853b90 commit d5b2ec9

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
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
13
{
2-
"image": "mcr.microsoft.com/devcontainers/universal:2",
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+
38
"features": {
4-
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {}
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"installGradle": true,
11+
"installGroovy": false,
12+
"installMaven": false,
13+
"installAnt": false,
14+
"version": "21",
15+
"jdkDistro": "ms",
16+
"gradleVersion": "latest",
17+
"mavenVersion": "none"
18+
},
19+
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {
20+
"platform": "35",
21+
"build_tools": "35.0.0"
22+
},
23+
"ghcr.io/devcontainers/features/node:1": {
24+
"nodeGypDependencies": false,
25+
"installYarnUsingApt": false,
26+
"version": "lts",
27+
"pnpmVersion": "latest",
28+
"nvmVersion": "latest"
29+
}
530
}
6-
}
31+
32+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33+
// "forwardPorts": [],
34+
35+
// Use 'postCreateCommand' to run commands after the container is created.
36+
// "postCreateCommand": "java -version",
37+
38+
// Configure tool-specific properties.
39+
// "customizations": {},
40+
41+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
42+
// "remoteUser": "root"
43+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

0 commit comments

Comments
 (0)