You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/02_basics.adoc
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
====
9
9
10
10
Maven::
11
-
+
11
+
+
12
12
--
13
13
[.console-input]
14
14
[source,bash,subs="+macros,+attributes"]
@@ -20,11 +20,11 @@ cd {project-name}
20
20
Quarkus CLI::
21
21
+
22
22
--
23
-
The quarkus CLI tool lets you create projects, manage extensions and do essential dev, build and deploy commands using the underlying project build tool in a simplified way.
23
+
The quarkus CLI tool lets you create projects, manage extensions and do essential dev, build and deploy commands using the underlying project build tool in a simplified way.
24
24
25
25
Follow these instructions to install Quarkus CLI: https://quarkus.io/guides/cli-tooling
26
26
27
-
Then create the application:
27
+
Then create the application:
28
28
[.console-input]
29
29
[source,bash,subs="+macros,+attributes"]
30
30
----
@@ -49,7 +49,7 @@ Or else if you're a CLI person, you can run a `curl` command like:
49
49
[.console-input]
50
50
[source,bash]
51
51
----
52
-
curl localhost:8080/hello
52
+
curl -w '\n' localhost:8080/hello
53
53
----
54
54
55
55
[.console-output]
@@ -83,7 +83,7 @@ You can run the test in your IDE or by running the following:
83
83
[tabs%sync]
84
84
====
85
85
Maven::
86
-
+
86
+
+
87
87
--
88
88
[.console-input]
89
89
[source,bash,subs="+macros,+attributes"]
@@ -132,7 +132,7 @@ Let's start the _Live Coding_ mode by using the `dev` command. You probably won'
132
132
[tabs%sync]
133
133
====
134
134
Maven::
135
-
+
135
+
+
136
136
--
137
137
[.console-input]
138
138
[source,bash,subs="+macros,+attributes"]
@@ -152,7 +152,7 @@ quarkus dev
152
152
--
153
153
====
154
154
155
-
NOTE: By default Quarkus uses 'localhost' for the dev mode host setting. If you are working in a remote development environment, you may need to set the host to 0.0.0.0 by appending `-D"quarkus.http.host=0.0.0.0"` to the above command.
155
+
NOTE: By default Quarkus uses 'localhost' for the dev mode host setting. If you are working in a remote development environment, you may need to set the host to 0.0.0.0 by appending `-D"quarkus.http.host=0.0.0.0"` to the above command.
156
156
157
157
== Dev UI
158
158
@@ -182,6 +182,6 @@ Press `r` and the tests will start running. You should see the status change dow
182
182
All 1 test is passing (0 skipped), 1 test was run in 11705ms. Tests completed at 16:02:32.
183
183
----
184
184
185
-
TIP: If you don’t want to have continuous testing enabled, you can change this by adding `quarkus.test.continuous-testing=disabled` to your `src/main/resources/application.properties`.
185
+
TIP: If you don’t want to have continuous testing enabled, you can change this by adding `quarkus.test.continuous-testing=disabled` to your `src/main/resources/application.properties`.
186
186
187
-
You can find more details about controlling continuous testing in https://quarkus.io/guides/continuous-testing#controlling-continuous-testing[this guide].
187
+
You can find more details about controlling continuous testing in https://quarkus.io/guides/continuous-testing#controlling-continuous-testing[this guide].
@@ -62,12 +63,12 @@ Notice in the logs how Quarkus has reloaded and started up a PostgreSQL database
62
63
[.console-output]
63
64
[source,text]
64
65
----
65
-
2023-03-16 08:06:56,882 INFO [io.qua.dat.dep.dev.DevServicesDatasourceProcessor] (build-13) Dev Services for the default datasource (postgresql) started - container ID is c7c9a6ccf029
66
+
2024-05-23 17:46:51,225 INFO [io.qua.dat.dep.dev.DevServicesDatasourceProcessor] (build-32) Dev Services for default datasource (postgresql) started - container ID is b2957fbe64ee
66
67
----
67
68
68
-
== Verify Postgresql testcontainer is running
69
+
== Verify PostgreSQL container is running
69
70
70
-
Let's verify in Docker/Podman that the Dev Services container is running. You should see 2 containers, one testcontainers/ryuk container which orchestrates the Dev Services, and another PostgreSQL container which is running the database and which is automatically wired into our Quarkus dev mode:
71
+
Let's verify in Docker/Podman that the Dev Services container is running. You should see 2 containers, one `testcontainers/ryuk` container which orchestrates the Dev Services, and another `postgres` container which is running the database and which is automatically wired into our Quarkus dev mode:
71
72
72
73
[.console-input]
73
74
[source,bash,subs="+macros,+attributes"]
@@ -83,7 +84,7 @@ Call the fruit endpoint again. The data is now coming from the PostgreSQL databa
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/_partials/compile-and-run.adoc
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ a|
16
16
[.console-input]
17
17
[source,bash,subs="+macros,+attributes"]
18
18
----
19
-
./mvnw package
19
+
./mvnw package
20
20
----
21
21
22
22
a|
@@ -44,9 +44,9 @@ Native mode::
44
44
+
45
45
--
46
46
47
-
Quarkus simplifies the https://quarkus.io/guides/building-native-image[compilation of Java applications down to a native binary] using GraalVM/Mandrel. To do so, add a "native" flag to your build command.
47
+
Quarkus simplifies the https://quarkus.io/guides/building-native-image[compilation of Java applications down to a native binary] using GraalVM/Mandrel. To do so, add a "native" flag to your build command.
48
48
49
-
NOTE: To force building a native binary in a GraalVM Mandrel container, add `-Dquarkus.native.container-build=true`.
49
+
NOTE: To force building a native binary in a GraalVM Mandrel container, add `-Dquarkus.native.container-build=true`.
50
50
51
51
[%header,cols="1,1"]
52
52
|=====
@@ -108,7 +108,7 @@ a|
108
108
[.console-input]
109
109
[source,bash,subs="+macros,+attributes"]
110
110
----
111
-
quarkus image build --native
111
+
quarkus image build --native
112
112
----
113
113
|=====
114
114
@@ -132,11 +132,11 @@ You'll see an output like this one:
132
132
[.console-output]
133
133
[source,text]
134
134
----
135
-
_____________ ___ __ ____ ______
136
-
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
137
-
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
138
-
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
139
-
2023-07-07 11:47:14,046 INFO [io.quarkus] (main) code-with-quarkus 1.0.0-SNAPSHOT native (powered by Quarkus 3.2.0.Final) started in 0.019s. Listening on: http://0.0.0.0:8080
140
-
2023-07-07 11:47:14,047 INFO [io.quarkus] (main) Profile prod activated.
135
+
_____________ ___ __ ____ ______
136
+
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
137
+
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
138
+
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
139
+
2023-07-07 11:47:14,046 INFO [io.quarkus] (main) code-with-quarkus 1.0.0-SNAPSHOT native (powered by Quarkus 3.10.2) started in 0.019s. Listening on: http://0.0.0.0:8080
140
+
2023-07-07 11:47:14,047 INFO [io.quarkus] (main) Profile prod activated.
0 commit comments