Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-5966

[3.20] Quarkus CLI build command incorrectly warns that image was set in the build-time

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • +
    • Hide
      quarkus create app rh.quarkus.qe:app --platform-bom=com.redhat.quarkus.platform:quarkus-bom:3.20.0.temporary-redhat-00002 -x=quarkus-agroal,quarkus-arc,quarkus-vertx --no-code --no-wrapper 
      
      cd app
      
      quarkus build --native -Dquarkus.native.builder-image=registry.access.redhat.com/quarkus/mandrel-for-jdk-21-rhel8:23.1 -Dquarkus.native.native-image-xmx=5g -Dquarkus.analytics.uri.base=http://fake.url

       

      Show
      quarkus create app rh.quarkus.qe:app --platform-bom=com.redhat.quarkus.platform:quarkus-bom:3.20.0.temporary-redhat-00002 -x=quarkus-agroal,quarkus-arc,quarkus-vertx --no-code --no-wrapper cd app quarkus build -- native -Dquarkus. native .builder-image=registry.access.redhat.com/quarkus/mandrel- for -jdk-21-rhel8:23.1 -Dquarkus. native . native -image-xmx=5g -Dquarkus.analytics.uri.base=http: //fake.url  
    • ---

      I have mentioned that when customers use Quarkus CLI to create and build RHBQ application, they must not specify build image with the 

      -Dquarkus.native.builder-image=registry.access.redhat.com/quarkus/mandrel-for-jdk-21-rhel8:23.1

      command argument, otherwise they receive confusing warning message

      21:04:46,093 INFO  quarkus build --native -Dquarkus.native.builder-image=registry.access.redhat.com/quarkus/mandrel-for-jdk-21-rhel8:23.1 -Dquarkus.native.native-image-xmx=5g -Dquarkus.analytics.uri.base=http://fake.url
      21:04:50,098 INFO  2025-04-08 21:04:47,428 WARN  [io.qua.run.con.ConfigRecorder] (main) Build time property cannot be changed at runtime:
      21:04:50,098 INFO   - quarkus.native.builder-image is set to 'registry.access.redhat.com/quarkus/mandrel-for-jdk-21-rhel8:23.1' but it is build time fixed to '${platform.quarkus.native.builder-image}'. Did you change the property quarkus.native.builder-image after building the application? 

      Maybe we can say that this is not supported as we expect customers always use only supported image 

      registry.access.redhat.com/quarkus/mandrel-for-jdk-21-rhel8:23.1 

      and it doesn't make sense to set it (or a different image). What I am trying to say is that this is a bad user-experience, I'd expect some message like Changing native builder image is not supported for Red Hat Build of Quarkus or something like that. I am opening this ticket to better understand why and if this behavior is expected.

      I could not reproduce the issue with the community CLI version.

      Jenkins job ref. (I saw it there, but it doesn't fail the build): https://jenkins-csb-quarkusqe-main.dno.corp.redhat.com/view/rhbq-3.20-extended-platform/job/rhbq-3.20-baremetal-ts-native/jdk=openjdk-21,label=RHEL8%20&&%20xlarge%20&&%20docker,scenario=root-modules/

              rcortez@redhat.com Roberto Cortez
              rh-ee-mvavrik Michal Vavrik
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: