Skip to content

Commit 9166684

Browse files
committed
quarkus explanation
1 parent b51b230 commit 9166684

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

documentation/modules/ROOT/pages/containerfile.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ It is less obvious thus it is preferable to use COPY unless you specifically nee
1919

2020
== Creating an application to be containerized
2121

22-
Let's first create a simple Java application so we can containerize it.
22+
While this tutorial won't delve into deep development topics, you'll be guided through creating a simple Java application using Quarkus.
23+
https://quarkus.io/[Quarkus] is a *Kubernetes-native Java framework* designed to optimize Java for the cloud.
24+
Its focus on a lower memory footprint and millisecond startup times makes it exceptionally efficient for modern architectures
25+
like microservices and serverless functions, dramatically cutting cloud costs and boosting deployment density.
26+
27+
Use the following command to scaffold a Quarkus application that includes a basic REST endpoint:
2328

2429
[.console-input]
2530
[source,bash,subs="+macros,+attributes"]
@@ -41,7 +46,7 @@ mvn package
4146

4247
== Building a Containerfile
4348

44-
Create a file named Containerfile.
49+
To contenerize your application, you'll need to create a file named `Containerfile`.
4550

4651
[.console-input]
4752
[source,bash,subs="+macros,+attributes"]

documentation/modules/ROOT/pages/env.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ public class GreetingResource {
4040
return config.orElse("no config");
4141
}
4242
}
43-
4443
----
4544

4645
Notice that instead of just printing `hello`, it will print the content of a `ConfigProperty` or print `no config` if the config doesn't exist.
4746

48-
Now, back to terminal, package your project:
47+
[TIP]
48+
The `@ConfigProperty` annotation in Quarkus (based on MicroProfile standard) is used to inject configuration values (like server ports or database credentials) from various sources (e.g., application.properties, environment variables) directly into your Java fields or method parameters, making applications easily configurable.
4949

50+
Now, back to terminal, package your project:
5051

5152
[.console-input]
5253
[source,bash,subs="+macros,+attributes"]

0 commit comments

Comments
 (0)