SLE BCI OpenJDK 17 runtime

OpenJDK 17 runtime container based on the SLE Base Container Image.

Get Image
Digest:
sha256:b3caf858712864db3985559f606b8b389ca7423df7240d7855cf4265a17911fb
b3caf8587
Repository:
registry.suse.com/bci/openjdk:17

OpenJDK 17 runtime container image

Redistributable SLSA Provenance: Available

Description

OpenJDK (Open Java Development Kit) is a free and open source implementation of the Java Platform, Standard Edition (Java SE). OpenJDK is the official reference implementation of Java SE since version 7.

The OpenJDK runtime image is intended to be used as a runtime environment. For development, use the OpenJDK development image.

Usage

To run a jar or war application inside a container instance, use the following command:

$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/openjdk:17 java -jar hello.jar

Or create a new contained based on OpenJDK 17 runtime image:

FROM registry.suse.com/bci/openjdk:17

WORKDIR /app

COPY . ./

CMD ["java", "-jar", "hello.jar"]

To compile and deploy an application, copy the sources and build the application:

# Build the application using the OpenJDK development image
FROM registry.suse.com/bci/openjdk-devel:17  as build

WORKDIR /app

COPY . ./

RUN javac Hello.java

# Bundle the application into OpenJDK runtime image
FROM registry.suse.com/bci/openjdk:17

WORKDIR /app

COPY --from=build /app/Hello.class /app

CMD ["java", "Hello"]

Build and run the container image:

$ podman build -t my-java-app .
$ podman run -it --rm my-java-app

Licensing

SPDX-License-Identifier: MIT

This documentation and the build recipe are licensed as MIT. The container itself contains various software components under various open source licenses listed in the associated Software Bill of Materials (SBOM).

This image is based on SLE BCI, a stable and redistributable foundation for software innovation. SLE BCI is enterprise-ready, and it comes with an option for support.

See the SLE BCI EULA for further information.

  • Image Data

    Last Built: 26 Nov 15:37 UTC

    Compressed Size: 129.3 MB

    Uncompressed Size: 354.4 MB

    Support Level: L3


  • Health Index
    A

    No vulnerabilities found

    Last Scan:

    about 15 hours ago