quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.53k stars 2.61k forks source link

Please provide way to set jib as default builder for `quarkus image build` #41881

Open weltonrodrigo opened 1 month ago

weltonrodrigo commented 1 month ago

Description

Right now, quarkus image build will do a docker build even if quarkus.container-image.builder=jib is set in pom.xml or application.properties

See:

$ quarkus image build --verbose
/xxxxxxxxxx/mvnw -Dstyle.color=always -Dquarkus.container-image.builder=docker -DquarkusRegistryClient=true resources:resources

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< XXXXXXXXXXXX >-------------------------
[INFO] Building xxxxxxxxxx 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- resources:3.3.1:resources (default-cli) @ xxxxxxxxxx ---
[INFO] Copying 4 resources from src/main/resources to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.277 s
[INFO] Finished at: 2024-07-14T12:18:16-03:00
[INFO] ------------------------------------------------------------------------
/xxxxxxxxxx/mvnw -Dstyle.color=always -Dquarkus.container-image.builder=docker -DquarkusRegistryClient=true quarkus:image-build

If I use quarkus image build -Dquarkus.container-image.builder=jib it will make the jib image.

If there isn't already (and I'm missing something), please provide a way to make jib (or any other) the default container image build via pom.xml

Implementation ideas

No response

quarkus-bot[bot] commented 1 month ago

/cc @geoand (jib)

geoand commented 1 month ago

cc @iocanel