Skip to content

Commit

Permalink
Merge pull request #3823 from OpenLiberty/staging
Browse files Browse the repository at this point in the history
Staging to prod- 24.0.0.6 release post
  • Loading branch information
dmuelle authored Jun 18, 2024
2 parents 0fd2f70 + ff7d3c9 commit 4424bdc
Show file tree
Hide file tree
Showing 5 changed files with 844 additions and 12 deletions.
8 changes: 4 additions & 4 deletions blog_tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"blog_tags": [
{
"name": "announcements",
"posts": ["24.0.0.6-beta",
"posts": ["24.0.0.6", "24.0.0.6-beta",
"24.0.0.5", "24.0.0.5-beta",
"24.0.0.4", "24.0.0.4-beta",
"24.0.0.3", "24.0.0.2",
Expand Down Expand Up @@ -160,7 +160,7 @@
},
{
"name": "release",
"posts": ["24.0.0.6-beta",
"posts": ["24.0.0.6", "24.0.0.6-beta",
"24.0.0.5", "24.0.0.5-beta",
"24.0.0.4", "24.0.0.4-beta",
"24.0.0.3", "24.0.0.2",
Expand Down Expand Up @@ -293,7 +293,7 @@
},
{
"name": "spring",
"posts": ["spring-boot-3",
"posts": ["24.0.0.6", "spring-boot-3",
"23.0.0.12", "23.0.0.10-beta",
"23.0.0.9", "23.0.0.9-beta",
"23.0.0.8-beta", "running-spring-boot-3",
Expand Down Expand Up @@ -527,7 +527,7 @@
},
{
"name": "performance-enhancements",
"posts": ["24.0.0.3",
"posts": ["24.0.0.6", "24.0.0.3",
"Java21-Images", "24.0.0.1",
"23.0.0.10-beta", "23.0.0.6",
"rapid-startup-instanton", "23.0.0.5-beta",
Expand Down
16 changes: 8 additions & 8 deletions posts/2023-09-26-spring-boot-3-instant-on.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ For more information about Liberty InstantOn, see the link:/blog/2023/06/29/rapi

== Spring Boot support for checkpoint/restore

The Spring Framework version 6.1 release will integrate with link:https://docs.spring.io/spring-framework/reference/6.1/integration/checkpoint-restore.html[JVM checkpoint/restore] by using the link:https://github.com/CRaC/org.crac[org.crac] project to allow capable systems to reduce the startup times of Spring-based Java applications. With the Liberty InstantOn 23.0.0.10-beta version, you can configure a new `crac-1.3` feature to provide an implementation of the link:https://javadoc.io/doc/org.crac/crac/latest/index.html[org.crac API] that integrates with Liberty InstantOn. This allows Spring-based applications, including Spring Boot applications, to be deployed with Liberty InstantOn to achieve rapid startup times.
The Spring Framework version 6.1 release will integrate with link:https://docs.spring.io/spring-framework/reference/6.1/integration/checkpoint-restore.html[JVM checkpoint/restore] by using the link:https://github.com/CRaC/org.crac[org.crac] project to allow capable systems to reduce the startup times of Spring-based Java applications. With the Liberty InstantOn 23.0.0.10-beta version, you can configure a new `crac-1.4` feature to provide an implementation of the link:https://javadoc.io/doc/org.crac/crac/latest/index.html[org.crac API] that integrates with Liberty InstantOn. This allows Spring-based applications, including Spring Boot applications, to be deployed with Liberty InstantOn to achieve rapid startup times.

== Production-ready Liberty container images

New link:https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image[Universal Base Image] container images are uploaded to the link:https://github.com/OpenLiberty/ci.docker/blob/main/docs/icr-images.md[IBM Container Registry] for each new release of Liberty. Starting with the 23.0.0.6 Liberty release, the Liberty UBI container images include the necessary prerequisites to checkpoint your applications with Liberty InstantOn. And now, starting with the 23.0.0.10-beta release, the UBI beta container image also includes the prerequisites to checkpoint your Spring Boot 3.2-based applications.

This beta release includes an implementation of the link:https://javadoc.io/doc/org.crac/crac/latest/index.html[`org.crac`] APIs with the Liberty beta feature `crac-1.3`. The `crac-1.3` feature, along with the Spring Framework version 6.1 support for `org.crac`, allows you to checkpoint your Spring-based applications with Liberty InstantOn to achieve rapid startup times.
This beta release includes an implementation of the link:https://javadoc.io/doc/org.crac/crac/latest/index.html[`org.crac`] APIs with the Liberty beta feature `crac-1.4`. The `crac-1.4` feature, along with the Spring Framework version 6.1 support for `org.crac`, allows you to checkpoint your Spring-based applications with Liberty InstantOn to achieve rapid startup times.

The Liberty container images make it easy to develop InstantOn applications that are ready to deploy into production. An important benefit of using Liberty InstantOn is the ability to do a checkpoint of the application process inside the container without requiring the root user to be running the application process in the container. It is important, from a security perspective, to avoid running the application process in the container as the root user. This allows you to link:https://openliberty.io/docs/latest/instanton.html#_deploying_an_instanton_application_to_kubernetes_services[deploy your InstantOn container images] to existing Kubernetes services like AWS EKS and Azure EKS.

Expand All @@ -60,17 +60,17 @@ After building the Spring Boot application, the next step is to containerize it.

To build the application container image with InstantOn, you must be able to either run a privileged container or grant the container image build engine the necessary link:https://openliberty.io/docs/latest/instanton.html#linux-capabilities[Linux capabilities] to do the checkpoint.

=== Enabling the crac-1.3 Liberty feature
=== Enabling the crac-1.4 Liberty feature

Liberty is composed of features that you enable according to the requirements of your application. To use Liberty's implementation of `org.crac`, you must enable the `crac-1.3` feature in the Liberty configuration. For this example, we can do that by copying in the `src/main/liberty/config/crac.xml` file into the container image with the following Dockerfile command:
Liberty is composed of features that you enable according to the requirements of your application. To use Liberty's implementation of `org.crac`, you must enable the `crac-1.4` feature in the Liberty configuration. For this example, we can do that by copying in the `src/main/liberty/config/crac.xml` file into the container image with the following Dockerfile command:

.Dockerfile
[source]
----
COPY src/main/liberty/config/crac.xml /config/configDropins/defaults
----

The `crac.xml` Liberty configuration file enables the `crac-1.3` feature with the following content:
The `crac.xml` Liberty configuration file enables the `crac-1.4` feature with the following content:

.crac.xml
[source,xml]
Expand All @@ -79,7 +79,7 @@ The `crac.xml` Liberty configuration file enables the `crac-1.3` feature with th
<server description="Enable the org.crac API">
<featureManager>
<feature>crac-1.3</feature>
<feature>crac-1.4</feature>
</featureManager>
</server>
Expand Down Expand Up @@ -185,7 +185,7 @@ You see the following output when the application process is restored:
2023-09-07T15:22:52.764Z INFO 118 --- [ecutor-thread-1] o.s.c.support.DefaultLifecycleProcessor : Spring-managed lifecycle restart completed in 80 ms
[AUDIT ] CWWKC0452I: The Liberty server process resumed operation from a checkpoint in 0.263 seconds.
[AUDIT ] CWWKZ0001I: Application thin-guide-spring-boot-0.1.0 started in 0.265 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [crac-1.3, expressionLanguage-5.0, pages-3.1, servlet-6.0, springBoot-3.0, ssl-1.0, transportSecurity-1.0, websocket-2.1].
[AUDIT ] CWWKF0012I: The server installed the following features: [crac-1.4, expressionLanguage-5.0, pages-3.1, servlet-6.0, springBoot-3.0, ssl-1.0, transportSecurity-1.0, websocket-2.1].
[AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 0.277 seconds.
----

Expand All @@ -208,7 +208,7 @@ InstantOn application images will be ready to deploy into existing public clouds
//
// OpenLiberty.io site links:
// link:/guides/microprofile-rest-client.html[Consuming RESTful Java microservices]
//
//
// Off-site links:
// link:https://openapi-generator.tech/docs/installation#jar[Download Instructions]
//
Expand Down
3 changes: 3 additions & 0 deletions posts/2023-12-12-23.0.0.12.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ seo-description: Open Liberty 23.0.0.12 introduces MicroProfile 6.1, which inclu
blog_description: Open Liberty 23.0.0.12 introduces MicroProfile 6.1, which includes updates for MicroProfile Metrics and MicroProfile Telemetry. This release also coincides with new versions of the Liberty Maven and Gradle plug-ins, and includes enhancements for OpenID Connect, LTPA key management, and more.
open-graph-image: https://openliberty.io/img/twitter_card.jpg
open-graph-image-alt: Open Liberty Logo
blog-available-in-languages:
- lang: ja
path: /ja/blog/2023/12/12/23.0.0.12.html
---
= MicroProfile 6.1, Liberty Tools updates, and more in Open Liberty 23.0.0.12
David Mueller <https://github.com/dmuelle>
Expand Down
Loading

0 comments on commit 4424bdc

Please sign in to comment.