Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package openjdk-17-image for 
openSUSE:Factory checked in at 2024-07-11 20:33:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openjdk-17-image (Old)
 and      /work/SRC/openSUSE:Factory/.openjdk-17-image.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openjdk-17-image"

Thu Jul 11 20:33:13 2024 rev:12 rq:1186795 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/openjdk-17-image/openjdk-17-image.changes        
2024-06-25 23:10:00.663847071 +0200
+++ 
/work/SRC/openSUSE:Factory/.openjdk-17-image.new.17339/openjdk-17-image.changes 
    2024-07-11 20:33:55.170484041 +0200
@@ -1,0 +2,5 @@
+Thu Jul 11 08:17:40 UTC 2024 - Alexandre Vicenzi <alexandre.vice...@suse.com>
+
+- extend README.md
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ README.md ++++++
--- /var/tmp/diff_new_pack.7Z1ZNi/_old  2024-07-11 20:33:55.734504434 +0200
+++ /var/tmp/diff_new_pack.7Z1ZNi/_new  2024-07-11 20:33:55.738504578 +0200
@@ -1,7 +1,61 @@
-# The openSUSE Tumbleweed BCI OpenJDK 17 runtime container image
+# OpenJDK 17 runtime container image
+
 ![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
 
-OpenJDK 17 runtime container based on the openSUSE Tumbleweed Base Container 
Image.
+## Description
+
+[OpenJDK](https://openjdk.org/) (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:
+
+```ShellSession
+$ podman run --rm -v "$PWD":/app:Z -w /app 
registry.opensuse.org/opensuse/bci/openjdk:17 java -jar hello.jar
+```
+
+Or create a new contained based on OpenJDK 17 runtime image:
+
+```Dockerfile
+FROM registry.opensuse.org/opensuse/bci/openjdk:17
+
+WORKDIR /app
+
+COPY . ./
+
+CMD ["java", "-jar", "hello.jar"]
+```
+
+To compile and deploy an application, copy the sources and build the 
application:
+
+```Dockerfile
+# 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.opensuse.org/opensuse/bci/openjdk:17
+
+WORKDIR /app
+
+COPY --from=build /app/Hello.class /app
+
+CMD ["java", "Hello"]
+```
+
+Build and run the container image:
+
+```ShellSession
+$ podman build -t my-java-app .
+$ podman run -it --rm my-java-app
+```
 
 ## Licensing
 

Reply via email to