It would be nice to support easily creating a manifest list packages and builders #1460
Labels
epic/multi-arch
status/ready
Issue ready to be worked on.
type/enhancement
Issue that requests a new feature or improvement.
Milestone
Description
If I am building, for example,
paketo-buildpacks/java
and I want to support multiple os/architectures I would like those to be supported under the same image name. This requires support for a manifest list. I would like pack to handle this for me, rather than needing additional tools.This is not strictly dependent on #1459 but as it becomes easier to create images for different os/architectures it'll be more apparent that we need the ability to have pack create a manifest list.
Proposed solution
I feel like there are some options here.
I could see a command that's run which when given multiple images produces a single manifest list image. That would require you to independently
pack buildpack package
each os/arch buildpack image, then combine them together. This would be a little tedious, but it would be easy to consume. A buildpack author could a.) compile their buildpack, b.) package it with pack, c.) repeat as needed, d.) callpack buildpack manifest
(or something like that).I could see this being more closely integrated with Provide a way to specify desired platform when creating packages and builders #1459. That when you pass multiple
--arch
flags (or whatever flag), or when you have multiple architectures listed in package.toml (or where ever), then pack would know to generate a manifest image. I think this would be convenient in that you could possibly get away with only one call topack buildpack package
. It would be a little different to consume though. A buildpack author would need to a.) compile their buildpack for every architecture , b.) callpack buildpack package
and somehow tell pack where each compiled buildpack resides. Right now there's a singleuri
in package.toml to do this, so you'd presumably need something that's architecture-specific or need some other way to pass that along.Describe alternatives you've considered
I have heard via @jromero that it is possible to use 3rd party tools to combine different images into a manifest image, but I haven't tried this or found any documented steps for doing it.
Additional context
The text was updated successfully, but these errors were encountered: