Skip to content

Reproducer for incorrect logging of build time hostname with Quarkus native build

Notifications You must be signed in to change notification settings

javanegmond/quarkus-native-hostname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostname for logging is determined at build-time

Steps to reproduce:

  1. Native build with mvn clean install -Pnative
  2. Start the application in a docker container:
    docker run -h runtime-hostname -it --rm --entrypoint=/target/native-hostname-1.0.0-SNAPSHOT-runner -v $PWD/target:/target -p 8080:8080 quay.io/quarkus/quarkus-micro-image:2.0
  3. Call the service with a GET at http://localhost:8080/hello
  4. Observe in the logging:
    2024/06/27 14:16:12.086 buildtime-hostname Hello from host runtime-hostname
    

About

Reproducer for incorrect logging of build time hostname with Quarkus native build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages