microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.7k stars 1.41k forks source link

Support for Java 21 #1771

Open jabrena opened 8 months ago

jabrena commented 8 months ago

Hi,

Recently I moved one project to Java 21, but I didn´t see any base image for Java 21. https://mcr.microsoft.com/v2/vscode/devcontainers/java/tags/list

Does exist any plans to add that support?

As a workaround, I created a simple docker image for that purpose:

    // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
    //https://mcr.microsoft.com/v2/vscode/devcontainers/java/tags/list
    //"image": "mcr.microsoft.com/devcontainers/java:0-17",
    "build": {
        "dockerfile": "Dockerfile",
        "context": "."
    },
# https://hub.docker.com/_/eclipse-temurin/tags?page=1&name=21-jdk
FROM eclipse-temurin:21-jdk-jammy

Many thanks in advance

Juan Antonio