Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor explicit container-build=false when container-runtime is set #20517

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

zakkak
Copy link
Contributor

@zakkak zakkak commented Oct 4, 2021

Makes -Dquarkus.native.container-runtime=docker not imply
-Dquarkus.native.container-build=true when the latter is explicitly set
to false. Additionally makes isContainerBuild checks consistent.

I.e. if -Dquarkus.native.container-runtime=podman
-Dquarkus.native.container-build=false are passed as parameters Quarkus
will not use a builder image.

Closes: #20258

@geoand
Copy link
Contributor

geoand commented Oct 4, 2021

I'm +0 on this. @gastaldi WDYT?

@gastaldi
Copy link
Contributor

gastaldi commented Oct 4, 2021

@geoand I think it makes sense, but I am not sure if this change will break existing behavior, may be worth adding also an entry to the changelog wiki

@stuartwdouglas
Copy link
Member

This is a breaking change. I would prefer container build to be changed to an Optional, and if it is set explicitly then honor it, otherwise keep the current behavior.

Makes -Dquarkus.native.container-runtime=docker not imply
-Dquarkus.native.container-build=true when the latter is explicitly set
to false.  Additionally makes isContainerBuild checks consistent.

I.e. if -Dquarkus.native.container-runtime=podman
-Dquarkus.native.container-build=false are passed as parameters Quarkus
will not use a builder image.

Closes: quarkusio#20258
@zakkak
Copy link
Contributor Author

zakkak commented Oct 5, 2021

This is a breaking change. I would prefer container build to be changed to an Optional, and if it is set explicitly then honor it.

That makes more sense, indeed! I updated the PR to implement this.

@zakkak zakkak changed the title Makes container-runtime=true not imply container-build=true Honor explicit container-build=false when container-runtime is set Oct 5, 2021
@zakkak zakkak requested a review from stuartwdouglas October 5, 2021 07:57
@stuartwdouglas stuartwdouglas merged commit 84d9188 into quarkusio:main Oct 5, 2021
@quarkus-bot quarkus-bot bot added this to the 2.4 - main milestone Oct 5, 2021
@zakkak zakkak deleted the fix-20258 branch October 6, 2021 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants