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

Enable OCI multi-platform image building #2748

Open
chanseokoh opened this issue Sep 3, 2020 · 3 comments · May be fixed by #3975
Open

Enable OCI multi-platform image building #2748

chanseokoh opened this issue Sep 3, 2020 · 3 comments · May be fixed by #3975

Comments

@chanseokoh
Copy link
Member

As of now, we only support constructing and pushing a Docker manifest list.

Also consider the case of jib:dockerBuild and jib:buildTar (#2743).

@SgtSilvio
Copy link

SgtSilvio commented Jun 16, 2022

Regarding building a tar there should also be an option to build an OCI tar which can store multi-arch images (https://github.com/opencontainers/image-spec/blob/main/image-layout.md).
Similar to docker buildx build --output=type=oci,dest=image.tar ...

Sorry, found out that it should already be possible (#2181)

@rquinio
Copy link
Contributor

rquinio commented Aug 24, 2022

This can leverage the work done for #2749
Impacted class should be https://github.com/GoogleContainerTools/jib/blob/master/jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ManifestListGenerator.java#L47-L49

I guess the choice between V22ManifestListTemplate or OciIndexTemplate should be driven by the already existing configuration container ImageFormat = Docker vs OCI ?
Because I don't see why someone would want to generate a V22ManifestTemplate inside an OciIndexTemplate, or an OciManifestTemplate inside a V22ManifestListTemplate.

@rquinio rquinio linked a pull request Mar 30, 2023 that will close this issue
4 tasks
@SgtSilvio
Copy link

Might be a little off-topic: The Gradle OCI Plugin (https://github.com/SgtSilvio/gradle-oci) might be interesting for those looking to build multi-arch OCI images.

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

Successfully merging a pull request may close this issue.

3 participants