buildpacks / pack

CLI for building apps using Cloud Native Buildpacks
https://buildpacks.io
Apache License 2.0
2.51k stars 283 forks source link

Support `docker://` URIs for builder lifecycle parameter #2076

Open braunsonm opened 6 months ago

braunsonm commented 6 months ago

Description

Right now we can provide a docker:// URI for the buildpacks listed in a builder inside the builder.toml but we cannot do the same thing with the lifecycle.

Proposed solution

[lifecycle]
  uri = "docker://buildpacksio/lifecycle:0.18.5"

Describe alternatives you've considered

Right now you need to provide a link to the tar.gz and cannot use docker images.

Additional context

The reason this would be a great quality of life feature is primarily because almost all the other fields in the specification allow docker:// archives. This would be consistent and not require a separate location for storage of the lifecycle binaries. It is a bit inconsistent that at build time you are able to specify a custom lifecycle image, but you can't do the same when you are packaging a builder.

jjbustamante commented 6 months ago
prashantrewar commented 6 months ago

Hey @jjbustamante, I want to give it a try. Could you please assign this to me?

rashadism commented 5 months ago

Hi @jjbustamante , I would like to take a look if this is available

natalieparellano commented 5 months ago

@prashantrewar were you still working on this one, or could @rashadism have it?

prashantrewar commented 5 months ago

@natalieparellano, I apologize, I'm busy with something. @rashadism you can feel free to try it.

Thank you!

rashadism commented 4 months ago

@jjbustamante @natalieparellano Hi can u review the PR