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

Fail the building docker image when a Java version mismatch exists #23212

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jan 26, 2022

This way users have an actionable error at build time instead
of waiting to get the error when running the container

@geoand geoand requested a review from iocanel January 26, 2022 14:19
Copy link
Contributor

@iocanel iocanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some questions, nothing blocking.

import java.util.List;
import java.util.Optional;

interface DockerFileBaseInformationProvider {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if this should be moved to spi or a commons module as we could possibly use it in other places too, e.g. container-image-openshift when we use the docker build strategy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say let's keep it here for now and if we do need it, then we can move. My point is that making it more general later is easier than making it part of an SPI now and potentially having to break down the line if this doesn't fit the bill for other use cases.

This way users have an actionable error at build time instead
of waiting to get the error when running the container
@geoand geoand force-pushed the dockerfile-java17-warning branch from e9fd603 to 769c605 Compare January 26, 2022 14:53
@geoand geoand merged commit d64d13b into quarkusio:main Jan 26, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Jan 26, 2022
@geoand geoand deleted the dockerfile-java17-warning branch January 26, 2022 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants