-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Package Registry related ToDo list #19270
Comments
https://github.com/boskiv/go-open-registry is a cargo registry Golang implementation . |
You can also consider add #7608 to todo list. |
That project still uses a git repo as storage. We could use that approach too but at the moment we can't set a repository to "hidden" to hide it from the normal repository view pages etc. |
It seems that Everytime I run Gitea, I see the error 😂
|
😢 #19293 |
Some links in i18n are 404 (update: duplicate with justusbunsi's #19315 ) |
One feature that I think would benefit public forges is adding a quota system (eg, make sure a user/org can't take all the storage). While the problem already exist for repositories (folks can just commit tarball after all), I think binary packages would make it worst and limits would be easier to reach by regular users. |
Not sure if this feedback should be in this issue. If not, let me know:
NPM/Yarn
Container Images
|
That should work (for public repositories). There may be a bug which hides private repos but I could not verify that. Does the html source contains the repo names?
What do you mean? As addition to the
I don't think the registry should prevent that. Isn't that up to the user?
That's correct and ok. If you use a "normal" port like 80 or 443 only the url is displayed. But if the registry uses a different port it needs to be specified. gitea/modules/setting/packages.go Lines 34 to 37 in be9ef15
|
I configured everything (org + repo) as private. That would explain it.
Yes. I had issues with using
Thats odd. I ran the latest dev docker image of Gitea and had a reverse proxy in front of it. I even configured ROOT_URL. So my instance is available at https://git.example.com (port 443) and I am able to push the image to this endpoint. But inside the pull command port 3000 is shown. |
I don't know if I am right with posting this here but I hope so. |
That's a good question. You can use a token to login in this case. Simply generate a token for that account and use I will add it to the docs. Edit: Here is the PR #20561 @BaseCrusher |
Suggested feature request for package registry: Support of proxy registries for all package types. These are package registries that proxy an external source of packages, hence configured with proxy URL, but are otherwise indistinguishable from local package registries. Example: A local Pypi.org proxy. Local build system would use both the private package registry for "internal" (private) packages, but fetch dependencies on Pypi.org through Gitea too. Advantages:
This feature in Docker repositories would remove any need for Dockerhub ECR mirror, which many have to set up to avoid Dockerhub's recent rate-limiting. The canonical example of the feature is in JFrog's Artifactory. Effectively, Gitea would, for these proxy repositories, become a local package cache. The biggest technical decision is about when to invalidate cache (docker image's "latest" tag moves pretty quickly, but if you already have a local copy, do you serve it as-is? even if you got it 2 years ago?) I understand this feature can be a big investment, and acknowledge that there may be no particular need for it. I mostly envy the feature, and wish for Gitea to succeed by out-executing Artifactory, given the new Package Registry is already encroaching on that a bit. Should I spin off this request into a standalone issue? Drop the request as too big? Happy either way, just want to surface this potential usecase that's now in reach. EDIT: Just noticed the related ticket around "Go-proxy" which sounds like it touches on same vibes(?) EDIT2: Standalone ticket is now: #21223 |
A standalone issue is better. |
Are you sure? As I remember, it's just an archive. This page also doesn't mention Git as a necessity: https://doc.rust-lang.org/cargo/appendix/glossary.html I can try to implement the support of Cargo packages. I'll look at the code soon. I see that no one tried yet. |
Yep, I'm sure. Have a look here:
But you don't have to spend time on that. I already implemented the Cargo registry but did not push it yet because I wait until #21658 is merged. I need the UI part for Cargo too and don't want to add that in the PR too. Here is a screenshot (ignore the install instructions, that's c&p from NuGet): |
I've tried RubyGems repository. Looks like it's incomplete. While Bundler succeeded to install gems when their exact versions were specified in |
Also I want to add Gitea configuration option for custom domain for packages to display it in the interface. It works well for both gem downloading and pushing with the following Nginx configuration:
I don't want to create an issue. I'll try to implement this soon. P.S. However I really should test if that's not the reason why Bundler doesn't work properly. |
I added the Cargo registry with #21888. |
Would be nice to be able set specific package registry as public (without authorization) for private instances (always requiring authorization) |
Automatic container linking to repository would also be nice if container has source url label |
That's already on the ToDo list ( |
Is there an api endpoint available to link the package to a repository? I don't see anything in swagger |
Not yet. May come bundled with |
I would like to have readonly virtual package registries (npm /nuget), with lists all accessable packages by suppplied credentials. so i don't need to configure multiple registries (eg one for each organization). somehow related to: |
I might be wrong here, is this the right place to suggest additional package types? I'd be interested in Ansible Galaxy support (existing implementations are https://github.com/briantist/galactory, https://github.com/ansible/galaxy, https://github.com/ansible/galaxy_ng), primarily for hosting ansible collections. The ability to host stand-alone roles is more of a legacy feature anyway. |
Will the Alpine, Debian, and RPM repositories be available upon the release of version 1.19.3? I noticed that the pull request has been open for a month now. |
No, we backport only fixes. As they are new features, they will available with 1.20 (if someone reviews them). You can help review the code and test the functionality. |
Now that #16510 got merged there are still some ToDos.
General:
HookTask
s of the repository #17981)npm unpublish
#20688 (comment))Package Types:
The text was updated successfully, but these errors were encountered: