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
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
+
49
+
NOTE: To force building a native binary in a GraalVM Mandrel container, add `-Dquarkus.native.container-build=true`.
50
+
46
51
[%header,cols="1,1"]
47
52
|=====
48
53
@@ -109,8 +114,8 @@ quarkus image build --native
109
114
110
115
NOTE: Native compilation will take few minutes to complete.
111
116
112
-
The above command built a native binary of the Java code and also built it into a container image.
113
-
To run the application (in native mode) you will need to start up a container:
117
+
The above command will build a native binary of the Java code and then copy it into a container image.
INFO [io.quarkus] (Quarkus Main Thread) tutorial-app 1.0-SNAPSHOT on JVM (powered by Quarkus 3.1.2.Final) started in 0.394s. Listening on: http://localhost:8080
135
-
136
-
INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
137
-
INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]
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.
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/setup.adoc
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ endif::workshop[]
27
27
GraalVM is only required if you intend to build a native image for your local operating system. If you want to create a container using a native image, you can use the Quarkus feature for this and don't need to install GraalVM locally.
28
28
====
29
29
30
-
NOTE: * You can also use Docker instead of Podman. The advantage of Podman is that it is 100% Free Open Source and does not need to run with elevated privileges. Just use 'podman' instead of 'docker' throughout the tutorial's instructions, or easier yet, alias docker=podman to automatically use podman under the hood for docker commands.
30
+
NOTE: * You can also use Docker instead of Podman. The advantage of Podman is that it is 100% Free Open Source and does not need to run with elevated privileges.
31
+
32
+
IMPORTANT: We highly recommend Windows users to use https://learn.microsoft.com/en-us/windows/wsl/install[WSL].
31
33
32
34
[tabs]
33
35
====
@@ -81,8 +83,7 @@ You can also install Java and Maven using https://sdkman.io[SDKMAN!]. This allow
81
83
Container Image::
82
84
+
83
85
--
84
-
If you have https://podman-desktop.io/downloads[Podman Desktop for Linux, window="_blank"] then you can pull the Linux container image
85
-
https://quay.io/repository/rhdevelopers/tutorial-tools?tab=tags[tutorial tools] which has all the tools listed below installed and pre-configured.
86
+
You can run the tutorial from inside a container which has all the tools listed below installed and pre-configured.
0 commit comments