-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fix Gradle v7.5+ not working with UBI based Docker images #463
Conversation
695434e
to
773c22e
Compare
For this change I just added the package here I manually added the package for these Dockerfile's, as the .j2 template does not influence these ones:
|
@ThoSap is there a reason you don't suggest that the gradle maintainers don't add this dependency to their base image? It kind of feels the wrong place to be adding package specific dependencies to our docker images. I note that the gradle doesn't ship an UBI image (only Ubuntu and Alpine one): https://github.com/keeganwitt/docker-gradle/blob/master/jdk21/Dockerfile If the requirement is to have a UBI image with Gradle preinstalled I'd suggest that we make the ask upstream? |
CC @keeganwitt (the official Gradle image maintainer) |
My change just installs the dependency The Ubuntu and Alpine Linux based Eclipse Temurin images ship with |
Yeah I totally understand what you're saying, my concern is explicitly adding a package to our images. Especially as they are meant to be minimal images. I'd like to see what @keeganwitt suggests first, I'd much prefer the Gradle project ship an official image for UBI (which would then contain any additional dependencies) |
I'm not currently providing UBI-based official Gradle images, though it's something I'd consider if I can understand the use-case a little better. The Gradle images were meant for using a globally-installed Gradle rather than the wrapper, which it sounds like is what @ThoSap is currently using. Still, in general I'd agree that something that's a Gradle-specific dependency would likely make sense to avoid adding to this base image. If you're wanting to stick with the wrapper, maybe it'd make sense to invoke the wrapper using the Gradle image (kind redundant, but at least you'd have the dependencies you need there). |
Going to close this based on the advice given (and our general policy to be as minimal as possible). |
@ThoSap Assuming it's of interest to you, please open an issue on https://github.com/keeganwitt/docker-gradle/ and explain the benefit of UBI-based images for us to consider a new image variant. |
Fixes #462 Gradle v7.5+ not working with UBI based Docker images.