Questions tagged [quarkus-native]
73 questions
5
votes
2 answers
How to access resources in a Quarkus native image?
I started playing with quarkus and graalvm. I added files (txt and jpg) to resources in the project (src/main/resources/). To be sure that I have access to this file in controller I display size of it:
URL url =…

tostao
- 2,803
- 4
- 38
- 61
3
votes
1 answer
Maven doesn't build -runner.jar
I have generated a new project with the archetype and I have run the following maven
./mvnw -Dskiptests clean package
It should build two jar files xxx.jar and xx-runner.jar but it only build one (xxx.jar).
I have configured JAVA_HOME and…

Ignacio Yuste Lopez
- 43
- 5
2
votes
1 answer
How to generate a PGO optimized native executable for Quarkus App?
I have a Quarkus Application exposed as a REST API. I need to generate an Profile Guided Optimized Native Image for that application.
I looked into the Quarkus documentation but could not find much. Anyone has generated same ?
I have GraalVM…

Paras
- 3,191
- 6
- 41
- 77
2
votes
0 answers
Quarkus change jdbc datasource URL during runtime
I want to have the ability to change the connected database during runtime. In other words, the %prod.quarkus.datasource.jdbc.url in application.properties file.
Requirements:
The change must be done programmatically, in other words it cannot be…

ABDev
- 21
- 2
2
votes
0 answers
Native multi-arch builds can't find linked libraries
I'm transitioning from a MacBook i9 chip to a MacBook M2 chip. I would like to build multi-arch docker images that support both linux/amd64 and linux/arm64. I can build and run on either computer but when I try to run the amd64 build on the arm64…

Matthew Demerath
- 21
- 1
2
votes
1 answer
Quarkus AWS Lambda invalid Entrypoint Error: fork/exec /var/task/bootstrap: exec format error Runtime.InvalidEntrypoint
I have simple kotlin, quarkus project which is build to native with command:
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
When my friend who is using macbook m1 uploades function.zip generated by quarkus like…

Damian Kapłon
- 65
- 1
- 5
2
votes
0 answers
MissingResourceException , can't find bundle for basename, locale en-us in quarkus native image
I have a basename.properties file in resources folder. Whenever I try to load a bundle using
File file = new File(String.valueOf(resourceBundlePath));
URL[] urls = {file.toURI().toURL()};
ClassLoader loader = new…

k kamalam
- 27
- 5
2
votes
0 answers
Invoking Quarkus Lambda function with MacOS M1 on a native build
I've been trying to invoke AWS Lambda functions (Quarkus) locally using AWS SAM CLI.
sam local invoke --template target/sam.native.yaml --event payload.json
Which is using this image.
Here is the relevant (hopefully) information.
File…

Daniel Teleginski Camargo
- 4,263
- 2
- 33
- 54
2
votes
1 answer
Quarkus Native Application with DioZero on Raspberry Pi using Docker containers (multi-arch)
Yoooo!
Scope
I am trying to deploy a Quarkus based application to a Raspberry Pi using some fancy technologies, my goal is to figure out an easy way to develop an application with Quarkus framework, subsequently deploy as native executable to a…

NanoBreaker
- 67
- 12
2
votes
4 answers
Building quarkus native Linux/amd64 (x86_64) image from Apple M1 (Arm)
I am trying to build Quarkus 2.8.0 for x86 platfom of native docker container from Apple M1 Macbook and deploy it in Linux amd64 Portainer. I was able to build the native image and when checking the file
file…

Devenol
- 23
- 4
2
votes
1 answer
Building Quarkus Native issue
I'm trying to build Quarkus Native app but I'm getting access denied during process build inside Docker. I'm following this doc
Dockerfile:
# Limit memory of build
ARG BUILD_MEMORY=4g
## Stage 1: build native sources
FROM gradle:7.3-jdk11 AS…

Celso Marques
- 378
- 1
- 4
- 15
1
vote
0 answers
How to create windows .exe on linux OS with quarkus native
I want to build windows executable on linux OS(ubuntu) using quarkus native.
When i build on Linux it creates "app-runner" and when i build it on Windows it is "app-runner.exe"
It creates problem where i have to switch to certain OS to release…

Hapaja
- 121
- 1
- 6
1
vote
0 answers
Building quarkus native Linux/amd64 (x86_64) image & container from Apple M1 (Arm) using Maven
This is a follow up question on Building quarkus native Linux/amd64 (x86_64) image from Apple M1 (Arm) with which I am still struggling.
I have the exact same issue (although using maven). I am trying to build a linux/amd64 native image on an Apple…

eistropfen
- 35
- 6
1
vote
1 answer
Deploying native Quarkus build on Render.com
I'm trying to deploy a native build of a Quarkus application to Render.com, but it fails. The build seems to run fine, as far as I can tell, but the application won't run. I can't reproduce it on my local setup.
My local trials
My build is derived…

Chop
- 4,267
- 5
- 26
- 58
1
vote
1 answer
How a Quarkus native image running in a Linux-based host system (i.e. Ubuntu) resolves JNI method calls?
I am using Tesseract for Java for OCR text extraction, which makes JNI native calls to Leptonica system library.
When running a Quarkus application in JVM mode in a Linux-based host it resolves JNI method calls correctly,
and all works as expected.…

Zeta
- 11
- 1