-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add no-pull option for image building #22736
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
Conversation
@anshlykov Thank you for the contribution. The changes look very good. As I was looking at implementing this myself, I started thinking that we could do better than replicating the Instead of a boolean "pull or no pull" option, we could model the Kubernetes behavior of a
This has the benefits of being familiar to Kubernetes users, providing one additional option for increased control, and making the configuration easier to understand. Would you mind updating the PR to implement this option? |
@scottfrederick thanks you for the review.
It is a good idea. I will implement this option. |
@scottfrederick I added the implementation of the |
...atform/src/main/java/org/springframework/boot/buildpack/platform/build/AbstractBuildLog.java
Show resolved
Hide resolved
This commit adds a pullPolicy option to the configuration of the Maven plugin spring-boot:build-image goal and the Gradle plugin bootBuildImage task. The new option gives users control over pulling the builder image and run image from a remote image registry to the local Docker daemon. See spring-projectsgh-22736
@anshlykov Thank you very much for the contribution. This will be a very useful feature. I've merged your changes along with a commit to polish a few things, update the documentation, and add an integration test. |
Closes #22679