-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Consider adding a spring-boot:push-image goal #26187
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
Comments
spring-boot:push-image
goal
Thanks for the suggestion. The primary focus of the We are hesitant to expand the Spring Boot plugin beyond CNB integration with a broader Docker-related feature set, as there are other Maven plugins that provide Docker integration. For example, the fabric8 Docker plugin has several fine-grained goals for working with Docker images beyond building an image. Adding configuration like the example below along with the Spring Boot plugin configuration in
Would a combination of Maven plugins like this meet your needs? |
Thanks for the feedback. I see and agree with your point of view. However, please note that I'm not suggesting adding new Docker-related functionality to the plugin, but rather expose existing functionality in its own goal. I know I could use other plugins, or even the Docker CLI, but the push logic offered by this plugin just works. No need to add more dependencies. Moreover, The Fabric8 Maven plugin is deprecated and superseded by JKube. And using JKube just for pushing a Docker image seems overkilling. Finally, regarding the parity with the So long story short, I still think the cost/benefit of this suggestion makes it worthy. While I understand your concerns from a framework maintainer point of view, I also think that making existing features actually useable, and improving the ergonomics and user experience, is important. |
While this wouldn't introduce a new capability to the plugin, it would open up the plugin to new usage patterns. Currently the plugin only has the ability to push the image built by
This came up in our team discussion a few days ago, and that viewpoint is understood. Both We can keep this under consideration while we think about where the Spring Boot build plugins fit into the various possible workflows. At this point in the release cycle, after the 2.5.0 release candidate has been published, an enhancement like this wouldn't be considered until a 2.6.0 release at the earliest. |
OK, fair enough. I will keep an eye on this issue to see if this decision is revisited in the future. Thanks! |
One of the best approaches in the CI/CD scope is to design everything reproducible locally. I don't know we would have to use different solutions for CI/CD and developer inner-loop workflow. 👍 For the @alvarosanchez proposal. |
We discussed this issue again today on our call and decided that we don't want to introduce a new goal at this time. Although there are a few good arguments for the idea, we're concerned about both the maintenance cost and the impression that a new goal will give. We really only intended the Thanks for the suggestion though. |
Currently, the way
spring-boot:build-image
is designed, makes it difficult to separate image building and image pushing in 2 different Maven lifecycle phases.The idea would be to separate both actions in different goals, binding
push-image
to thedeploy
phase.If this sounds interesting, I can contribute the pull request.
The text was updated successfully, but these errors were encountered: