Introducing our new CEO Don Johnson - Read More

bellsoft/liberica-openjdk-centos

Verified Publisher

By BellSoft

Updated 10 months ago

Liberica is a 100% open-source Java implementation by BellSoft

Image
Languages & Frameworks
Operating Systems
Security
4

1M+

bellsoft/liberica-openjdk-centos

As CentOS Stream 8 reached end-of-live on May 31, 2024, Liberica JDK images for CentOS are considered deprecated and will no longer receive updates

What is Liberica JDK?

Liberica JDK is free and 100% open-source Progressive Java Runtime for modern Java deployments. It is developed and supported by BellSoft, a major OpenJDK contributor. Application development with Liberica JDK is

  • Flexible. Liberica JDK supports the widest range of present-day architectures and operating systems, which makes it a unified Java runtime for desktop, server, cloud, and embedded use cases.
  • Cost- and time-efficient. BellSoft produces the smallest containers in the world based on Liberica Lite and Alpine Linux, which enable companies to minimize deployment time and reduce cloud expenses.
  • Secure. Liberica JDK is TCK-verified for Java SE specifications and thoroughly tested for exposures before every release. The CPU release cycle helps to deliver timely security patches and bug fixes to keep the runtime secure and performant at all times.

Liberica JDK is recommended and used by Spring as the end-to-end solution for Spring Native applications. BellSoft serves millions of developers and companies from various industries across the globe. For more information, visit www.bell-sw.com.

How to choose an optimal Java image?

We compiled an interactive scheme that will help you decide which BellSoft’s image is perfect for your project. How to choose an optimal java image

What’s in this image?

This repository contains the Liberica JDK images for CenOS available for following architectures:

  • x86_64 (aka amd64)
  • aarch64 (aka ARM64)
  • armhf (for devices like Raspberry Pi 2/3)

The tags point at the Java version (right after the OS name) and supported architecture. Image name structure: X-Y, where X is the Java version and Y is the architecture type. If the architecture type is not included into the name, then the build supports AMD64 and ARM64 by default. The ‘latest’ tag points to the latest version of an image. Images with '-cds' in tag contain CDS (Class Data Sharing) archive. For instance, bellsoft/liberica-openjdk-centos:8u322-6-x86_64 is an image with Liberica JDK version 8u322 for CentOS running on AMD64.

Tags

Usage

For example, you can run a Liberica OpenJDK 17 container with the following command:

docker run -it --rm bellsoft/liberica-openjdk-centos:latest java -version

To run some application you can create Dockerfile, based on bellsoft/liberica-openjdk-centos image or mount volume with your code/applicaiton, for example:

docker run -it --rm -v /home/user/project/:/data bellsoft/liberica-openjdk-centos:latest java -jar /data/MyApp.jar

Version specific options
  • JDK 8u* version
    • LIBERICA_USE_LITE – defines content of JDK for this image. 0 means keep jdk unchanged, 1 (default) creates lite image, where demos, samples and sources are removed from image.
  • JDK 11* and JDK 17* versions
    • LIBERICA_IMAGE_VARIANT – possible image variants are:
      • base – server VM with java.base module.
      • base-minimal – minimal VM with java.base module.
      • lite (default) – lite JDK with minimal footprint.
      • standard – standard JDK.
    • LIBERICA_VM – this option defines included VM for lite and standard image variant. Possible values are:
      • server (default) – add server VM to image.
      • client – add client VM to image.
      • minimal – add minimal VM to image.
      • all – add all VMs from original bundle to image.

Docker Pull Command

docker pull bellsoft/liberica-openjdk-centos