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

Feature Request: Base Image Lockfile #4350

Open
gabrieljones opened this issue Feb 6, 2025 · 0 comments
Open

Feature Request: Base Image Lockfile #4350

gabrieljones opened this issue Feb 6, 2025 · 0 comments

Comments

@gabrieljones
Copy link

Gradle has dependency version lockfiles

I can declare my dependency versions as latest.release or [3,4[(any version 3.x, but nor 4.x).

This offers flexibility at the cost of build reproducibility.

I can restore reproducibility by turning on dependency locking.

Once I've done all of that I get the best of both worlds.

Anytime I want to float to the latest version bounded by all of my dependency version ranges I run ./gradlew dependencies --write-locks.

It is my desire to have a similar capability with jib base image declarations.

Whenever I run some command like -write-locks the sha of the latest version of my base image is discovered and then written to some kind of like file. That sha is then used until such time as I run --write-locks again.

Of course all of this can be done manually. I've just gotten so used to the convenience afforded by the combination of gradle's version range declarations and its lockfile capability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant