I use gitea, it works fine.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Strong recommend for Forgejo. It’s a community fork of gitea that’s actively maintained by the community and a great open source nonprofit.
It’s actually a drop in replacement for gitea if you are using that now.
Super lightweight. Super snappy, and it supports GitHub Actions style CI/CD.
Big +1 for Forgejo, also they are actively working on implementing Federation, i.e. in the future Forgejo servers will be able to exchange information as a federated network, just like good old Lemmy 😊 If you want to try the toolchain (Forgejo+Woodpecker CI), it's what Codeberg.org (run by the German nonprofit organization of the same name) offers freely.
The actions are amazing, and I was also able to integrate them with tailscale so I can build and deploy everything within my network automatically.
I run it in a vps with 1cpu and 2gb ram along several other services.
If you just want a remote to push your code to without issues, projects, pull requests and such you can use git only: https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server
This is actually a good idea! No need to over engineer stuff 😅
@khoi@slrpnk.net if you're okay with that I suggest you check out this https://gitolite.com/gitolite/overview.html.
In short "Gitolite allows you to setup git hosting on a central server, with fine-grained access control and many more powerful features.". It doesn't require some background daemon running, uses the server's SSH and it is a simple script that deals with access control so you can easily manage your users and repositories. The "cherry on top" is that you control your git "server" using a git repository :P
Yup K.I.S.S
i run forgejo on my shitty vps and for the amount of features it has it is surprisingly lightweight, i love it so much
For personal use https://forgejo.org/ or https://gogs.io/ should be enough
I recommend against gogs. It's missing lots of features that I expected and I ended up switching to gitea anyways. Gitea works well for everything I need and forgejo is a fork of gitea that I might switch to in the future.
I personally use Gitea. It's really nice, and it stays out of the way until you need it.
Gitea also has webhooks so you can use it with Portainer to update Docker Compose container stacks from repo.
Here's another plug for gitea. It's lightweight, but still has a nice feature set.
I tried hosting GitLab a number of years back, but it was more resource hungry than my host machine could handle well.
I use gitea and it's great, I would recommand having a good backup système if you care about your repos though
Gitea.
Isn't this a spin-off of gogs?
I still need to convert.
Skip it and go right to forgejo : it's the current tip of the iceberg.
The majority of maintainers stayed with Gitea. Forgejo is not the tip, they still pull the majority of their commit from gitea directly.
Maybe, depends on the migration path. Gitea proved impossible to migrate to.
As a dumb user I like gitlab! It's responsive, clean, legible, and pretty easy to navigate compared to others. Also anything that supports git clone because it's pretty nice for manually building stuff on arch.
I don't know what your project is or if it's going to be public but that's my vote if it is!
I'd recommend Forgejo/Gitea as others have mentioned or https://sourcehut.org (instance available at https://sr.ht/)
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Fewer Letters | More Letters |
---|---|
Git | Popular version control system, primarily for code |
SSD | Solid State Drive mass storage |
SSH | Secure Shell for remote terminal access |
VPS | Virtual Private Server (opposed to shared hosting) |
4 acronyms in this thread; the most compressed thread commented on today has 4 acronyms.
[Thread #276 for this sub, first seen 12th Nov 2023, 09:40] [FAQ] [Full list] [Contact] [Source code]
Forgejo is my go to, I ran it in a GCP micro instance, which has 768 MB ram and a piddling processor. One of my friends works for a company that had all their devs run a local instance in addition to the main repo, it was that light.
Gitea is the former go to, but gitea was hijacked and stolen from the community by a for profit company. Forgejo is currently a drop in replacement fork, but with added privacy features, future federation options, and a reputable parent organization.
If you don't need the web gui stuff (and you shouldn't for personal use) you can set up a git server using gitolite. Very easy to manage
And if you really want even more barebones, you can just do git init --bare
into a directory on your VPS, and then git clone user@your.ip.here:path/to/the/directory
and use git as you would normally!
and you shouldn't for personal use
Nonsense. I like to see how my CI is going.
Gogs and Gitea are very similiar, Gitea is a fork of Gogs with a bit more features as I understand it.
However when I tried to get Gitea working personally a year and a half ago, it had some rough issues with redirect looping onto itself infinitely, could never get it to work.
On the other hand Gogs didn't have this issue, and was much more painless to stand up, so it's what I use now.
Used gogs, it was... fine. Made the jump to Gitea and it's just amazing. Not that it does anything really different, but you can tell it's much more polished. Gogs just felt like a CS student's final project, Gitea is something I could use at work.
They genuinely looked identical to me.
Either way, gogs dies what I need it to, git server for backing up my code and super basic git web Hooks to trigger my build server.
Couldn't ask for anything more.
I setup Gogs once like 6 years ago or something lol, I remember it being pretty easy and it is nice. Although if Gitea is more actively maintained then it's probably worth giving that a shot first.
What about gitlab? Isn't that the same as GitHub? If not I'll need to see how they are different.
Gitlab isn't really lightweight. It is cool, but not lightweight.
Ahh ok, I know the other team deployed it in our openshift environment so wasn't sure.
Yeah. It needs 3gb ram, now. That's about 1/10th what a Windows VM needs to boot, seemingly, but still large.
If you don't need the web interface and just want a feature rich git server I recommend Soft Serve. It has a really cool ssh TUI as well.
This is cool!
How cheap are we talking? OneDev is awesome but is recommended to have 2gb ram - the more repos and larger code bases might eventually need more ram.
Memory vCPUs Transfer SSD 1 GiB 1 vCPU 1,000 GiB 25 GiB
I've been using gogs since I had my RPi2. It's not fancy, it just works. Gitea is a fork of it, as there are others, but I never really put time in a conversion, as gogs just works. I don't do more then synching repos over ssh and an occasional repo creation via the web interface. It's a 1 user setup.
Edit: just spend a bit of spare time to install forgejo to figure out what I need to do to move the repos I have (~200) over. All that was needed was to create all repos manually and then rsync the content from the direcory with the gogs repos to the forgejo repo storage. I went ftom gogs 0.12 to forgejo 1.20.5 in a tad over 2h.
I haven't installed it yet, but I'm going to try out Gitness for this: https://docs.gitness.com/
I have now installed it and I like it.
@khoi@slrpnk.net probably others already suggested, gitea is as lightweight as you can go with a nice interface and features