I’m looking to self-host a GitHub alt on a cheap Linux VPS for personal use. Any rec?

  • mholiv@lemmy.world
    link
    fedilink
    English
    arrow-up
    82
    arrow-down
    5
    ·
    8 months ago

    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.

    • nightm4re@feddit.de
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      1
      ·
      edit-2
      8 months ago

      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.

        • nightm4re@feddit.de
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 months ago

          This will allow you to browse & contribute to projects hosted on other instances without having an account there. Imagine using the GitHub search to find a project on Gitlab, then opening an issue there without ever even leaving GitHub. The protocol is called ForgeFed.

    • pe1uca@lemmy.pe1uca.dev
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 months ago

      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.

    • khoi@slrpnk.netOP
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      8 months ago

      This is actually a good idea! No need to over engineer stuff 😅

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        8 months ago

        @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

    • paris@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 months ago

      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.

  • A. Pins@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    8 months ago

    I use gitea and it’s great, I would recommand having a good backup système if you care about your repos though

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    8 months ago

    Gitea also has webhooks so you can use it with Portainer to update Docker Compose container stacks from repo.

  • davad@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    8 months ago

    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.

  • nexussapphire@lemm.ee
    link
    fedilink
    English
    arrow-up
    11
    ·
    8 months ago

    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!

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    7 months ago

    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]

    • russjr08@outpost.zeuslink.net
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      8 months ago

      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!

  • antihumanitarian@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    8 months ago

    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.

  • pixxelkick@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    8 months ago

    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.

    • Scrubbles@poptalk.scrubbles.tech
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 months ago

      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.

      • pixxelkick@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        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.

    • s3rvant@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      I’ve spun up Gitea in my homelab as well as at work and don’t recall being difficult so perhaps they fixed whatever was causing your issue

    • Die4Ever@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      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.