Skip to content

Commit 4686a40

Browse files
authored
Support: Java 25 (devcontainers#1345)
1 parent 27641b8 commit 4686a40

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

src/java/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This Dockerfile uses separate build arguments instead of VARIANT
2-
ARG TARGET_JAVA_VERSION=21
2+
ARG TARGET_JAVA_VERSION=25
33
ARG BASE_IMAGE_VERSION_CODENAME=trixie
44
FROM mcr.microsoft.com/devcontainers/base:${BASE_IMAGE_VERSION_CODENAME}
55

src/java/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published images* | mcr.microsoft.com/devcontainers/java |
12-
| *Available image variants* | 11 / 11-trixie, 17 /17-trixie, , 21 / 21-trixie, 21-bookworm, 17-bookworm, 11-bookworm ([full list](https://mcr.microsoft.com/v2/devcontainers/java/tags/list)) |
12+
| *Available image variants* | 11 / 11-trixie, 17 /17-trixie, 21 / 21-trixie, 21-bookworm, 25 / 25-trixie, 25-bookworm, 17-bookworm, 11-bookworm ([full list](https://mcr.microsoft.com/v2/devcontainers/java/tags/list)) |
1313
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Debian |
@@ -22,6 +22,7 @@ See **[history](history)** for information on the contents of published images.
2222
You can directly reference pre-built versions of `Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to one of the following. An example `Dockerfile` is included in this repository.
2323

2424
- `mcr.microsoft.com/devcontainers/java` (latest)
25+
- `mcr.microsoft.com/devcontainers/java:25` (or `25-trixie`, `25-bookworm` to pin to an OS version)
2526
- `mcr.microsoft.com/devcontainers/java:21` (or `21-trixie`, `21-bookworm` to pin to an OS version)
2627
- `mcr.microsoft.com/devcontainers/java:11` (or `11-trixie`, `11-bookworm` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/java:17` (or `17-trixie`, `17-bookworm` to pin to an OS version)

src/java/manifest.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{
22
"version": "2.0.0",
33
"variants": [
4+
"25-trixie",
45
"21-trixie",
56
"17-trixie",
67
"11-trixie",
8+
"25-bookworm",
79
"21-bookworm",
810
"17-bookworm",
911
"11-bookworm"
1012
],
1113
"build": {
12-
"latest": "21-trixie",
14+
"latest": "25-trixie",
1315
"rootDistro": "debian",
1416
"parent": "base-debian",
1517
"idMismatch": "true",
1618
"variantBuildArgs": {
19+
"25-trixie": {
20+
"TARGET_JAVA_VERSION": "25",
21+
"BASE_IMAGE_VERSION_CODENAME": "trixie"
22+
},
1723
"21-trixie": {
1824
"TARGET_JAVA_VERSION": "21",
1925
"BASE_IMAGE_VERSION_CODENAME": "trixie"
@@ -26,6 +32,10 @@
2632
"TARGET_JAVA_VERSION": "11",
2733
"BASE_IMAGE_VERSION_CODENAME": "trixie"
2834
},
35+
"25-bookworm": {
36+
"TARGET_JAVA_VERSION": "25",
37+
"BASE_IMAGE_VERSION_CODENAME": "bookworm"
38+
},
2939
"21-bookworm": {
3040
"TARGET_JAVA_VERSION": "21",
3141
"BASE_IMAGE_VERSION_CODENAME": "bookworm"
@@ -40,6 +50,10 @@
4050
}
4151
},
4252
"architectures": {
53+
"25-trixie": [
54+
"linux/amd64",
55+
"linux/arm64"
56+
],
4357
"21-trixie": [
4458
"linux/amd64",
4559
"linux/arm64"
@@ -52,6 +66,10 @@
5266
"linux/amd64",
5367
"linux/arm64"
5468
],
69+
"25-bookworm": [
70+
"linux/amd64",
71+
"linux/arm64"
72+
],
5573
"21-bookworm": [
5674
"linux/amd64",
5775
"linux/arm64"
@@ -69,10 +87,14 @@
6987
"java:${VERSION}-${VARIANT}"
7088
],
7189
"variantTags": {
90+
"25-trixie": [
91+
"java:${VERSION}-25",
92+
"java:${VERSION}-25-jdk-trixie",
93+
"java:${VERSION}-trixie"
94+
],
7295
"21-trixie": [
7396
"java:${VERSION}-21",
74-
"java:${VERSION}-21-jdk-trixie",
75-
"java:${VERSION}-trixie"
97+
"java:${VERSION}-21-jdk-trixie"
7698
],
7799
"17-trixie": [
78100
"java:${VERSION}-17",
@@ -82,10 +104,13 @@
82104
"java:${VERSION}-11",
83105
"java:${VERSION}-11-jdk-trixie"
84106
],
85-
"21-bookworm": [
86-
"java:${VERSION}-21-jdk-bookworm",
107+
"25-bookworm": [
108+
"java:${VERSION}-25-jdk-bookworm",
87109
"java:${VERSION}-bookworm"
88110
],
111+
"21-bookworm": [
112+
"java:${VERSION}-21-jdk-bookworm"
113+
],
89114
"17-bookworm": [
90115
"java:${VERSION}-17-jdk-bookworm"
91116
],

0 commit comments

Comments
 (0)