packager: set OCI layout metadata for direct registry push#748
Draft
packager: set OCI layout metadata for direct registry push#748
Conversation
Set the "containerimage.oci-layout" metadata key on BuildKit results from BuildModelpack() and BuildGeneric() (excluding files mode). This signals to a BuildKit image exporter with OCI layout passthrough support that the result contains a pre-built OCI layout and should be pushed as-is, preserving custom media types, annotations, and artifact structure. This enables `--output type=image,push=true` to work directly without external tools like oras or skopeo. Requires: sozercan/buildkit@oci-layout-passthrough
Add output_mode=artifact build arg to the modelpack packager that produces artifact metadata instead of an OCI layout. The metadata is consumed by the BuildKit artifact postprocessor to enable direct registry push via --output type=image,push=true. Also bump LocalAI to v3.10.1 and update Go dependencies to align with the buildkit postprocessor changes.
Take LocalAI v3.12.1 and vLLM backend support from main. Update go.mod/go.sum to main's versions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
containerimage.oci-layoutmetadata key on BuildKit results fromBuildModelpack()andBuildGeneric()(excludingfilesmode)artifactType, and full OCI artifact structure through the pushDependencies
How to test
Verified
docker.io/sozercan/qwen3:0.6b-test— manifest matchesdocker.io/sozercan/qwen3:0.6bexactly (flat manifest, same media types, same annotations)