go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.23k stars 5.32k forks source link

[Proposal] Gitea repository storage abstract #25070

Open lunny opened 1 year ago

lunny commented 1 year ago

Current status

Gitea's repositories are stored in a single directory that is configured via app.ini.

24783 would like hot/cold storage. i.e. repo archived repository will be stored in a HDD but the hot repository will be stored in SSD

22532 would like to store the repository in different directories with a hash

13791 request a distributed git storages like gitaly

The problems

Resolution

Others

Some ideas are storing git repositories with repository id but not username/reponame, how to handle it?

6543 commented 1 year ago

to have nice proxy-pattern and can switch between different git backend's ...

TODO:

6543 commented 1 year ago

this also might enable to use https://gitlab.com/gitlab-org/gitaly for us ... or split gitea int microservices ... (as one option)

6543 commented 1 year ago
6543 commented 1 month ago

Sorry somebody else might pick it up befor me ... i still intent to pick it up again if not addressed later :)

lunny commented 1 month ago

I think this could be replaced by #29033