Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 6 additions & 6 deletions src/java-8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| *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)) |
| *Available image variants* | 8 / 8-trixie, 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 |
| *Container host OS support* | Linux, macOS, Windows |
| *Container OS* | Debian |
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`, `8-bullseye` 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`, `3-8-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:3.0-8` (or `3.0-8-bookworm`, `3.0-8-bullseye` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/java:3.0.0-8` (or `3.0.0-8-bookworm`, `3.0.0-8-bullseye` 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
12 changes: 10 additions & 2 deletions src/java-8/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "2.0.27",
"version": "3.0.0",
"variants": [
"trixie",
"bookworm",
"bullseye"
],
Expand All @@ -9,6 +10,10 @@
"rootDistro": "debian",
"parent": "base-debian",
"architectures": {
"trixie": [
"linux/amd64",
"linux/arm64"
],
"bookworm": [
"linux/amd64",
"linux/arm64"
Expand All @@ -22,8 +27,11 @@
"java:${VERSION}-8-${VARIANT}"
],
"variantTags": {
"bookworm": [
"trixie": [
"java:${VERSION}-8",
"java:${VERSION}-8-jdk-trixie"
],
"bookworm": [
"java:${VERSION}-8-jdk-bookworm"
],
"bullseye": [
Expand Down