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

Gitlab Proxy Cache #21399

Open
Heshmatkhah opened this issue Jan 10, 2025 · 6 comments
Open

Gitlab Proxy Cache #21399

Heshmatkhah opened this issue Jan 10, 2025 · 6 comments
Assignees
Labels
help wanted The issues that is valid but needs help from community icebox replication/adapters related to replication adapters

Comments

@Heshmatkhah
Copy link

Is your feature request related to a problem? Please describe.
Hi,
Why the Proxy Cache is not compatible with GitLab.
Technically, whats the difference between these registries?
Aren't all container registries have same API?

Describe the solution you'd like
Can you please add Proxy Cache support for GitLab?

Thank you

@aureq
Copy link

aureq commented Jan 12, 2025

For reference, there was this issue #14234 but it has been automatically closed due to inactivity.

To add, GitLab is a prominent alternative to GitHub. Furthermore, GitLab supports self-hosted container registries so having the ability to override GCR default URL would be most welcome.

@aureq
Copy link

aureq commented Jan 12, 2025

It seems possible to add registry.gitlab.com as a Registry in Harbor, however, it's not possible (yet) to create a new project leveraging this remote registry. That remote registry is only available for remote replication.

@stonezdj
Copy link
Contributor

All registries support v2 api, but they have a different implementation on some other API such as authentication, and list artifact API.

@wy65701436 wy65701436 added replication/adapters related to replication adapters icebox help wanted The issues that is valid but needs help from community labels Jan 13, 2025
@wy65701436
Copy link
Contributor

@Heshmatkhah can you try the workaround the mentioned above? And we have no resource to maintain the Gitlab adapter so far, and any contribution is welcome.

@aureq
Copy link

aureq commented Jan 13, 2025

@wy65701436 is there a chance that you could list the various source files on another registry that are required to implement the proxy and adapter please? If that's not too complicated, I could try to submit a PR.

@Heshmatkhah
Copy link
Author

Hi

@Heshmatkhah can you try the workaround the mentioned above? And we have no resource to maintain the Gitlab adapter so far, and any contribution is welcome.

The replication rules works as expected for gitlab, but the problem is that I have 1000+ images with many tags, the total registry size on my gitlab instance is 1TB+, I don't need all of theme on my harbor, and I don't have time to write rule for each image to filter tags.
I just need a cache proxy to cache whatever I need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The issues that is valid but needs help from community icebox replication/adapters related to replication adapters
Projects
None yet
Development

No branches or pull requests

4 participants