Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/java-8/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): bookworm, buster, bullseye
ARG VARIANT="bookworm"
ARG VARIANT="trixie"
FROM mcr.microsoft.com/devcontainers/base:${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
Expand Down
14 changes: 7 additions & 7 deletions src/java-8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
| *Categories* | Core, Languages |
| *Image type* | Dockerfile |
| *Published images* | mcr.microsoft.com/devcontainers/java:8 |
| *Available image variants* | 8 / 8-bookworm, 8-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/java/tags/list)) |
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bullseye` and `bookworm` variants |
| *Available image variants* | 8 / 8-trixie, 8-bookworm ([full list](https://mcr.microsoft.com/v2/devcontainers/java/tags/list)) |
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `trixie` and `bookworm` variants |
| *Container host OS support* | Linux, macOS, Windows |
| *Container OS* | Debian |
| *Languages, platforms* | Java |
Expand All @@ -23,17 +23,17 @@ See **[history](history)** for information on the contents of published images.

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.

- `mcr.microsoft.com/devcontainers/java:8` (or `8-bookworm`, `8-bullseye`, `8-buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:8` (or `8-trixie`, `8-bookworm` to pin to an OS version)

Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.

You can decide how often you want updates by referencing a [semantic version](https://semver.org/) of each image. For example:

- `mcr.microsoft.com/devcontainers/java:2-8` (or `2-8-bookworm`, `2-8-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:2.0-8` (or `2.0-8-bookworm`, `2.0-8-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:2.0.0-8` (or `2.0.0-8-bookworm`, `2.0.0-8-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:3-8` (or `3-8-trixie`, `3-8-bookworm` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:3.0-8` (or `3.0-8-trixie`, `3.0-8-bookworm` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:3.0.0-8` (or `3.0.0-8-trixie`, `3.0.0-8-bookworm` to pin to an OS version)

However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `2-8`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `3-8`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.

See [history](history) for information on the contents of each version and [here for a complete list of available tags](https://mcr.microsoft.com/v2/devcontainers/java/tags/list).

Expand Down
20 changes: 10 additions & 10 deletions src/java-8/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"version": "2.0.27",
"version": "3.0.0",
"variants": [
"bookworm",
"bullseye"
"trixie",
"bookworm"
],
"build": {
"latest": false,
"rootDistro": "debian",
"parent": "base-debian",
"architectures": {
"bookworm": [
"trixie": [
"linux/amd64",
"linux/arm64"
],
"bullseye": [
"bookworm": [
"linux/amd64",
"linux/arm64"
]
Expand All @@ -22,13 +22,13 @@
"java:${VERSION}-8-${VARIANT}"
],
"variantTags": {
"bookworm": [
"trixie": [
"java:${VERSION}-8",
"java:${VERSION}-8-jdk-bookworm"
"java:${VERSION}-8-jdk-trixie"
],
"bullseye": [
"java:${VERSION}-8-jdk-bullseye"
]
"bookworm": [
"java:${VERSION}-8-jdk-bookworm"
]
}
},
"dependencies": {
Expand Down