-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Auto-detect container runtime #13669
Conversation
4dd3903
to
5f32dcd
Compare
core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This checks that the podman or docker is chosen based on the environment
5f32dcd
to
0997ebf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gastaldi just a minor issue in the javadoc of detectContainerRuntime
@@ -394,6 +397,51 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa | |||
return nativeImage; | |||
} | |||
|
|||
/** | |||
* @return {@link ContainerRuntime#PODMAN} if the podman executable exists in the environment or if the docker executable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment implies that podman
is preferred over docker
but the code does the opposite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that was the initial behavior, but I changed later on and forgot to update the Javadoc 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#13699 fixes this
While nice, this is a new feature, I won't backport it. |
Actually I think it's more like a bug fix than a new feature, but that's ok |
This checks that podman or docker is chosen based on the environment
This is a follow-up to #10637 (comment)