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

How to create OCI image #775

Closed
sonatard opened this issue Jul 21, 2022 · 3 comments
Closed

How to create OCI image #775

sonatard opened this issue Jul 21, 2022 · 3 comments

Comments

@sonatard
Copy link

I used to be able to create an OCI image #623, but it was reverted #653 . Is it possible to create an OCI image now?

@imjasonh
Copy link
Member

ko's logic is currently to produce an image matching the type of the base image. So if your base image is Docker-typed, ko produces a Docker-typed image, etc.

Recently, ko changed its default base image to ghcr.io/distroless/static (#737), which is equivalent to the previous gcr.io/distroless/static in nearly every way, except it's also an OCI-typed image. So with this change, ko should start producing OCI-typed images by default.

I'd still like to have a force-OCI (or force-Docker I guess) option, similar to #623, but with better testing and probably a shared implementation in go-containerregistry so other tools can take advantage.

Hope this helps!

@sonatard
Copy link
Author

Thanks!! I understood. Do you have a next release plan?

@imjasonh
Copy link
Member

Thanks!! I understood. Do you have a next release plan?

The v0.12 milestone is empty, but there are a couple non-technical things I'd like to wait for, so maybe next week. Mainly having more downstream users at head testing stuff out to make sure we're not releasing broken stuff.

For example, #776 was caught by a project that opted in to the new base image already. If they hadn't, we would have released a ko that was unable to push to Quay and Gitlab. 🤕

If you'd like to try out ko at head, just go install github.com/google/ko@main and let us know if you find anything!

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

No branches or pull requests

2 participants