GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.63k stars 1.44k forks source link

When will support Java 21 be added? #4169

Open bcg-siingkim opened 8 months ago

bcg-siingkim commented 8 months ago

Environment:

Description of the issue: When will support for building Java 21 be available?

3mtee commented 8 months ago

FWIW, I managed to get it working by explicitly specifying a jre image name to use as a base

jib {
    from {
        image = "eclipse-temurin:21-jre"
    }
}
mimranfaruqi commented 6 months ago

FWIW, I managed to get it working by explicitly specifying a jre image name to use as a base

jib {
    from {
        image = "eclipse-temurin:21-jre"
    }
}

Are your containers running with root after using from ?

I also had the same problem and when I specified the images explicitly, the jib containers are running with root user.