Skip to content

Commit 784be41

Browse files
committed
run the sample in native mode
Signed-off-by: Jianguo Ma <[email protected]>
1 parent 98630e8 commit 784be41

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/storage/blobs/storage-quickstart-blobs-java-quarkus.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ The code example performs the following actions:
8787
- Lists the blobs in the container
8888
- Downloads the blob data to the local file system
8989
- Deletes the blob and container resources created by the app
90+
- Deleting the local source and downloaded files
9091

91-
Run the application using the following command:
92+
Run the application in JVM mode using the following command:
9293

9394
```bash
9495
mvn package
@@ -116,6 +117,15 @@ Done
116117

117118
Before you begin the cleanup process, check your data folder for the two files. You can compare them and observe that they're identical.
118119

120+
Optionally, you can run the sample in native mode. To do this, you need to have GraalVM installed, or use a builder image to build the native executable. For more information, see the [Building a Native Executable](https://quarkus.io/guides/building-native-image). This quickstart uses Docker as container runtime to build a Linux native executable. If you haven't installed Docker, you can download it from the [Docker website](https://www.docker.com/products/docker-desktop).
121+
122+
Run the following command to build and execute the native executable in a Linux environment:
123+
124+
```bash
125+
mvn package -Dnative -Dquarkus.native.container-build
126+
./target/storage-blob-1.0.0-SNAPSHOT-runner
127+
```
128+
119129
## Understand the sample code
120130

121131
Next, you walk through the sample code to understand how it works.

0 commit comments

Comments
 (0)