-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: replace docker with oras #904
Conversation
276de89
to
9ad6f27
Compare
Integration Tests for 1682667 run with result: Success ✅! |
Mend Scan Summary: ❌Repository: open-component-model/ocm
|
Integration Tests for 1682667 run with result: Success ✅! |
Okay, I made the thing work, but it's kinda an ugly workaround I don't much like. But we might have to live with. Let's see how it play out.
Right now, there is a "problem" with ORAS where you can't fetch anything without first knowing the Size. We can gather the size, by doing a Resolve call beforehand. But that needed to include the REF where there is a GetBlobData call using OCI. That needed a bit of refactoring passing it around. Now, docker also did this but it did it separately and included in the client. I might also make the same refactor here. But suffice to say, the Ref needs to be passed around for oras to work right now. Now, doing a Resolve should be fine even if delay is set, because it's not a Fetch call. So no data is retrieved. But it does retrieve the size. So doing something like this works: resolvedDescriptor, err := resolver.Resolve(dummyContext, ref+"@"+digest.String()) But it's kinda a hack and I don't necessarily like it. Let's see what oras peeps reply to my issue on fetching without size because removing their size check makes everything work supernicely. So I don't really understand why they would have that restriction ¯_(ツ)_/¯. Let's see how it goes. The issue oras-project/oras-go#822 |
dee7266
to
478f787
Compare
Integration Tests for ca95e2f run with result: Success ✅! |
1 similar comment
Integration Tests for ca95e2f run with result: Success ✅! |
efac9b6
to
3bafb9e
Compare
Integration Tests for 327ca9c run with result: Success ✅! |
Integration Tests for 90f15d2 run with result: Success ✅! |
d66df62
to
b0646fa
Compare
Integration Tests for 90f15d2 run with result: Success ✅! |
cd1234d
to
7259b77
Compare
Integration Tests for 90f15d2 run with result: Success ✅! |
1 similar comment
Integration Tests for 90f15d2 run with result: Success ✅! |
eab85ca
to
d633138
Compare
Integration Tests for 90f15d2 run with result: Success ✅! |
Credential access is working:
The only problem is that it's not working with the docker file right now. It's not setting password as a token, which is required by the static credential check. |
Integration Tests for 90f15d2 run with result: Success ✅! |
1 similar comment
Integration Tests for 90f15d2 run with result: Success ✅! |
Integration Tests for 9025236 run with result: Success ✅! |
This is odd. Looks like linter is failing locally, but doesn't fail in Github. Very interesting. |
Yes we are waiting for Uwe. |
Integration Tests for 7b3e61b run with result: Success ✅! |
5b09779
to
f5d50c8
Compare
Integration Tests for 7b3e61b run with result: Success ✅! |
f5d50c8
to
0181bdd
Compare
Integration Tests for 7b3e61b run with result: Success ✅! |
0181bdd
to
e4b1c43
Compare
Integration Tests for 7b3e61b run with result: Success ✅! |
19fc20a
to
72cb3ff
Compare
Integration Tests for 7b3e61b run with result: Success ✅! |
72cb3ff
to
821e5e5
Compare
Integration Tests for 7b3e61b run with result: Success ✅! |
a8f9a35
to
ed725a6
Compare
1acb53f
to
d6356db
Compare
Related to #872 and #904 --------- Co-authored-by: Gergely Brautigam <[email protected]>
Related to #872 and #904 --------- Co-authored-by: Gergely Brautigam <[email protected]>
This reverts commit 3cfa228. <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> --------- Co-authored-by: Jakob Möller <[email protected]>
This is a highly Draft pull request understanding the nuances of the OCI package.
There are a LOT of things to do yet: