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

Allow pushing of oci images #358

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Allow pushing of oci images #358

merged 1 commit into from
Oct 23, 2024

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Oct 22, 2024

No description provided.

COPY {model} /{model_name}
"""
)
run_cmd([self.conman, "build", "-t", target, "-f", containerfile.name, contextdir], stdout=None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this require conman to be available a system tool/dependency? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being able to create and push to a OCI Registry requires an OCI Container Engine.

@rhatdan
Copy link
Member Author

rhatdan commented Oct 23, 2024

Need to add tests using local oci registries to RamaLama.

Copy link
Member

@tarilabs tarilabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe pushing a non-executable OCI Image with only containing model is a valid alternative way, given more recent K8s KEP updates.

I also believe we should seize this time as an opportunity to give relevance to Metadata of the model, see comment below.

This will also compound for benefit of putting as well Metadata under scope of Signature and Attestation.

wdyt?

Comment on lines +72 to +74
FROM scratch
COPY --from=builder /run/model /
COPY {model} /{model_name}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the "source" contains metadata,
e.g. an HuggingFace Model Card

can you add a 1 layer here dedicated to it ?

This way, we can "consume" this from multiple "downstream" such as registry and model registry

(a HF Model Card is typically a markdown with a yaml frontmatter; not sure what ollama brings in terms of Metadata, but analogously)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to get this in, and then open PRs to add more metadata to the container image since this is just a simple Containerfile, it should be simple to enhance it.

@rhatdan rhatdan changed the title [WIP] Allow pushing of oci images Allow pushing of oci images Oct 23, 2024
@ericcurtin ericcurtin merged commit cd1e7d5 into containers:main Oct 23, 2024
14 checks passed
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

Successfully merging this pull request may close these issues.

3 participants