From a9074952662c7d71df98ddc0a7e4f7e33c29b4bc Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 13 May 2022 20:47:42 +0200 Subject: Import from MulkCMS 2. Change-Id: I8b2f6d4833ee606b59264b368df7110039b722d7 --- openjdk-runtime/README.adoc | 69 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 openjdk-runtime/README.adoc (limited to 'openjdk-runtime/README.adoc') diff --git a/openjdk-runtime/README.adoc b/openjdk-runtime/README.adoc new file mode 100644 index 0000000..8687266 --- /dev/null +++ b/openjdk-runtime/README.adoc @@ -0,0 +1,69 @@ +// SPDX-FileCopyrightText: © 2022 Matthias Andreas Benkard +// +// SPDX-License-Identifier: GFDL-1.3-or-later + += openjdk-runtime +Matthias Andreas Benkard +// Meta +:experimental: +:data-uri: +:sectnums: +:toc: +:stem: +:keywords: mulk +// Settings +:icons: font +:source-highlighter: rouge + +A container image that contains an OpenJDK runtime suitable for running +modern web services. + + +== Summary + +This container image ships the latest OpenJDK feature release from +https://jdk.java.net[jdk.java.net] on top of a +https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_types-of-container-images_building-running-and-managing-containers#con_understanding-the-ubi-micro-images_assembly_types-of-container-images[Red +Hat UBI Micro] base. + +The module set was selected for +https://gerrit.benkard.de/plugins/gitiles/mulkcms2/[MulkCMS 2], which +is a typical Quarkus application. It will very likely work for other +typical Quarkus applications. + + +== Building + +[source,shell] +---- +./prepare +docker build -t $IMAGE_NAME . +---- + + +== Customization + +You may want to customize the module set included in the JDK. + +For example, specifying `ALL-MODULE-PATH` includes all modules +included in the OpenJDK distribution: + +[source,dockerfile] +---- +RUN /jdk/*/bin/jlink \ + -J-XX:MaxRAMPercentage=75 \ + --add-modules ALL-MODULE-PATH \ #<1> + --compress=1 \ + --no-man-pages \ + --strip-debug \ + --output /java +---- +<1> Include all JDK modules. + + +== Usage + +[source,shell] +---- +docker run $IMAGE_NAME java -version +---- -- cgit v1.2.3