Open hbxu opened 3 months ago
I'm unable to reproduce it:
Might be a Windows issue. @houcine7 can you please try yourself?
I don't have dnd.
I used
docker run -it --rm -v D:\micronaut-native-image-exits:/usr/src/myapp -w /usr/src/myapp maven:3.9.8-amazoncorretto-21 /bin/bash
and run, which will fail:
mvn clean package -Pgraalvm -Dpackaging=docker-native
on my Windows machine, I completed the docker build:
docker build -t demo . --build-arg CLASS_NAME=com.example.Application --build-arg BASE_IMAGE=ghcr.io/graalvm/native-image-community:21-ol9 --build-arg BASE_IMAGE_RUN=cgr.dev/chainguard/wolfi-base:latest
It works
> docker run -p 8080:8080 demo
__ __ _ _
| \/ (_) ___ _ __ ___ _ __ __ _ _ _| |_
| |\/| | |/ __| '__/ _ \| '_ \ / _` | | | | __|
| | | | | (__| | | (_) | | | | (_| | |_| | |_
|_| |_|_|\___|_| \___/|_| |_|\__,_|\__,_|\__|
08:42:16.337 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 25ms. Server Running: http://d86f592bbd11:8080
@alvarosanchez yes this is a windows issue and it is already reported [GCN-4274]
@alvarosanchez The pull request I raised for native arguments images fixed the this issue, because there was an issue related the way dependencies path is been parsed in case of windows.
Just to be clear, this is different to #1098 isn't it?
yes they are different
Expected Behavior
Actual Behaviour
JVM:
Docker with native image, exits? after showing Micronaut banner:
Steps To Reproduce
Building docker native-image:
Environment Information
Example Application
Version
Micronaut 4.5.0