Closed kpagratis closed 1 month ago
/cc @geoand (jib)
I'm actually a little confused.
Looking at:
gradle <myapp>:build -Dquarkus.container-image.build=true \
-Dquarkus.jib.platforms=linux/arm64 \
-Dquarkus.container-image.tag=${imageTag} \
-Dquarkus.container-image.push=false \
-Dquarkus.package.jar.type=mutable-jar
I assume you are attempting to create a container image.
But then you launch the application via:
java -jar -Dquarkus.launch.rebuild=true quarkus-run.jar
I'm actually attempting to start the app with
java -jar -Dquarkus.launch.rebuild=true -Dquarkus.package.output-directory=/home/jboss quarkus-run.jar && java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar quarkus-run.jar
But I would expect not to have to set the quarkus.package.output-directory
property
And then the additional ask would be to have a mechanism to have the container re-augment prior to start. either with a configuration to the jib extension or with passing a environment variable to the container on start
I'm actually attempting to start the app with
java -jar -Dquarkus.launch.rebuild=true -Dquarkus.package.output-directory=/home/jboss quarkus-run.jar && java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar quarkus-run.jar
But I would expect not to have to set the
quarkus.package.output-directory
property
Ah, so these are the commands executed inside the container, correct?
@geoand yes that's correct.
Gotcha, I'll have a look soon
@kpagratis can you check #41888 please?
Sure I'll try today. Thanks!
I just tried with the pr branch and am still seeing the exception when running
docker run -it --entrypoint "/bin/sh" <my image sha> -c "java -jar -Dquarkus.launch.rebuild=true quarkus-run.jar"
Any chance you can attach a sample that exhibits the problem?
Describe the bug
Running a re-augment in a jib image fails because it's trying to find the jar in a default location.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
I created the image like so
when i attempt to run
java -jar -Dquarkus.launch.rebuild=true quarkus-run.jar
in the image i get the following stacktraces:I was able to get re-augmentation to work but i had to set the
quarkus.package.output-directory
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response