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 gitea oci registry #166

Merged
merged 2 commits into from
Jun 6, 2024
Merged

Enable gitea oci registry #166

merged 2 commits into from
Jun 6, 2024

Conversation

jessesanford
Copy link
Contributor

@jessesanford jessesanford commented Mar 4, 2024

This is now working with the following patch for gitea: https://github.com/jessesanford/gitea/blob/c2fffabcd5122d258360d4443b6e583fc62e28f1/routers/api/packages/container/container.go#L119-L131

We need to decide if we want to use this forked version temporarily while we shape a PR for upstream or continue to use an additional registry. @nimakaviani @nabuskey @greghaynes wdyt?

@jessesanford jessesanford self-assigned this Mar 4, 2024
@jessesanford jessesanford force-pushed the enable-gitea-oci-registry branch 3 times, most recently from d32794c to 254d45c Compare March 5, 2024 00:21
@jessesanford jessesanford changed the title DO NOT MERGE: Straw man for enabling gitea oci registry Enable gitea oci registry Mar 5, 2024
@jessesanford jessesanford force-pushed the enable-gitea-oci-registry branch from 254d45c to 5b98d28 Compare March 5, 2024 01:23
@nabuskey
Copy link
Collaborator

nabuskey commented Mar 5, 2024

We had some discussions around enabling gitea OCI registry.

I think we should enable it by default and let users decides to use it. My reasoning is that we already install Gitea by default so we can get this feature for "free". I don't see any harm in enabling this feature by default so long as we stay local.

BUT we need to be careful and not rely on this. End users should be able to use whatever registries they want to use. We should not restrict them to using this registry.

As for this particular patch, I am inclined to not use this patch. I would like to use the upstream version. The issue seems to be related to mismatched name resolution. Wonder if we can work around this with Core DNS config?

@nimakaviani
Copy link
Contributor

@jessesanford can you plz drop the link to the change you had to make to gitea for its image registry to work? I am curious if we can find a better way to get around the problem than to have to use a custom image.

@jessesanford
Copy link
Contributor Author

@nabuskey I agree with everything you said. It just so happens this works very well with the ref-implementation workflows I am developing.

@nimakaviani the unofficial PR for my changes is here... it's pretty simple: https://github.com/jessesanford/gitea/pull/1/files

You can also see the discussion of the issue here on the official repo: go-gitea/gitea#29591

I am bullish on this becoming an actual upstream patch as the project has accepted similar contributions for the git repo functionality in the past. See: go-gitea/gitea#19345

@tapas4java
Copy link
Contributor

How about adding Harbor as a core application and use as OCI/Image registry? Anyway every platform needs some kind of registry for application images

@nimakaviani
Copy link
Contributor

@jessesanford 's PR to gitea got merged and we should be able to leverage gitea as the OCI registry as well. Need to update to the latest gitea version with the fix in it though. I will create an issue for it

Signed-off-by: Jesse Sanford <[email protected]>

update gitea to latest helm chart

Signed-off-by: Jesse Sanford <[email protected]>
@jessesanford jessesanford force-pushed the enable-gitea-oci-registry branch from 5b98d28 to a5d1978 Compare June 5, 2024 23:30
@nimakaviani nimakaviani self-requested a review June 6, 2024 16:53
Copy link
Contributor

@nimakaviani nimakaviani left a comment

Choose a reason for hiding this comment

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

LGTM

@nimakaviani nimakaviani merged commit c35c33e into main Jun 6, 2024
3 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.

4 participants