Self-host your own Git platform! // GitLab

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 101

  • @christianlempa
    @christianlempa  3 месяца назад +1

    Experience a new way to learn with Imprint. Visit imprintapp.com/Lempa to get a 7-day free trial and 20% off an annual subscription.

  • @ImARichard
    @ImARichard 3 месяца назад +9

    The main reason I run gitlab in my homelab is CI/CD and the built in container registry. I have a pipeline that will, on a successful merge to main, build my multi-arch docker images and push to the local registry, then using a portainer webhook automatically redeploy the application and pull down the latest image.
    Its wildly unnecessary for the project that has a few dozen to maybe a few hundred users but its fun to do nonetheless.

  • @minifig404
    @minifig404 3 месяца назад +13

    Personally, I'd value the integrated CI/CD over the issue tracking. Issue tracking is just one way of organizing a to-do list that spans multiple projects, and if you have both software and non-software hobbies with multi-project to-do lists, the issue tracker built into git lab might not be enough.
    But anyone with a home lab can benefit from the automation CI/CD provides.

  • @akshaynsit
    @akshaynsit 3 месяца назад +4

    I can't believe the incredible timing of this video. I spent the last few days trying to set up gitlab but couldn't get past some redis issues.

    • @christianlempa
      @christianlempa  3 месяца назад +1

      Oh I hope the video was helpful

    • @Stevenwaupevon
      @Stevenwaupevon 2 месяца назад

      Me also I'm sure he's got drones watching the nerd population

  • @mxc2007
    @mxc2007 3 месяца назад +8

    Gitea with actions is amazing.

  • @tba77
    @tba77 2 месяца назад +2

    Gitlab is my preferred platform gitlab-ci is simple and very efficient. Like you I worked as system admin and made transition to cloud devops so writing infra code and then learned to use git then configure automatic tasks deployment etc and a self hosted gitlab was the tool to do all of this I also setup self hosted gitlab for my former company. Very good video

  • @JanTeamHvr
    @JanTeamHvr 3 месяца назад +9

    Looking forward to the comparison of GitLab and Gitea! Imho, GitLab is a little to much for a single-person Homelab. ;D But let's see what's your conclusion. :)

    • @ISBayHudson
      @ISBayHudson 3 месяца назад

      Gitea with Drone CI would be interesting :)
      Been using Gitlab for work for last 10+ years..... seemed way too overkill for my homelab so settled on Gitea and love it :)

  • @ibrexg
    @ibrexg 2 месяца назад

    Great video. It would be nice to add a second part to explain 1. email configuration e.g. for sending notifications to the users and 2. a simple CI/CD setup

  • @blinkitogaming
    @blinkitogaming 2 месяца назад

    Really cool stuff. I use my GitLab self hosted instance to deploy configuration files on other VMs on my network via an Ubuntu docker img with Kaniko.
    Whenever I make a change on a project's config file and commit, that Ubuntu docker img will update those changes to the corresponding files on the VM that is running that service via ssh.
    So by doing this I can keep tracking the changes I make and also keeping all configs in one place, isolating them in different projects: DNS servers, Homepage config and others.
    I also have configured my GitLab instance to clone the repos to my GitHub so I can have an extra backup of my configs.
    For this you also need a GitLab runner.

  • @maykopetersen5741
    @maykopetersen5741 Месяц назад

    Thank you for this video. You help us so much!!!
    I'm reading several comments and thinking... If you go to the interview, what do you think a interviewer will ask you: by GitLab or by Gitea? What these companies has certifications? I see that is important for larger companies. A larger company wants you have a experience with tools widely used.

    • @christianlempa
      @christianlempa  Месяц назад +1

      Thank you for the great feedback! Indeed, that's one of the reasons why I do what I do and try to cover useful tools instead of the latest and greatest hobby project trends ;)

    • @maykopetersen5741
      @maykopetersen5741 Месяц назад

      @@christianlempa I you do it wonderfully!

  • @timsubscriptions3806
    @timsubscriptions3806 3 месяца назад +1

    Love to see you setup a self host Docker Registry 🙏🏻

    • @sergeygr
      @sergeygr 3 месяца назад +1

      You can have it by running gitlab or gitea. Its a built in feature. Or running as separate platform like "Harbor" or older one called "Portus".

    • @timsubscriptions3806
      @timsubscriptions3806 3 месяца назад

      @@sergeygr Perfect ! I already use Gitea. 😎 Cheers

  • @davemeech
    @davemeech Месяц назад

    Another reference point for starting my dream homelab up. Amazing stuff, thank you!

  • @MichaelRinghusGertz
    @MichaelRinghusGertz 3 месяца назад +2

    You should create a video about Gitea aswell. And then another video, where you compare the two platforms. That could be super nice.

    • @christianlempa
      @christianlempa  3 месяца назад +3

      That’s exactly what I’ve planned 😆👍

  • @davidclark6447
    @davidclark6447 21 день назад +1

    Greet video. Just an fyi, the free tier is available for ee (not lust ce) and I've seen issues with ce

    • @christianlempa
      @christianlempa  19 дней назад

      Thanks! Yes I heard that, seems a bit strange :D maybe I'll try that out at some point

  • @ryoh8677
    @ryoh8677 3 месяца назад +1

    I'll be looking forward to seeing the Gitea video, hopefully, you can explain a good way of getting SSH to work behind Traefik

    • @christianlempa
      @christianlempa  3 месяца назад

      Awesome! Of course I’ll do that :)

  • @johnbaldwin143
    @johnbaldwin143 3 месяца назад +1

    Christian, I do this with all the open source project I work with. Then if the internal changes I make work for me then I push the changes to the origin files. Gitlab works for me. Others may differ in opinion. Additionally I also use etckeeper to version my Linux /etc folder!

    • @christianlempa
      @christianlempa  3 месяца назад +1

      Awesome! That is nice

    • @johnbaldwin143
      @johnbaldwin143 3 месяца назад

      @@christianlempa It should be the standard. Even for new coders, We never learn without making mistakes and often original thinking provides an alternative to mainstream thinking.

  • @subzizo091
    @subzizo091 Месяц назад

    thanks for the great content, can you please make a video on setup gitlab on kubernetes with traefik and longhorn

  • @ralumbur
    @ralumbur 3 месяца назад +1

    Thanks for the video. I would have guessed that you also install gitlab in your Kubernetes. How was your decision making process? As Docker because it doesn't need to be scaled? Because it contains a database and you rather not install it in Kubernetes? Or because it is easier to install / maintain?

    • @christianlempa
      @christianlempa  3 месяца назад +1

      I want to test gitea and decide which one I’m gonna use on my Kubernetes prod system later

    • @ralumbur
      @ralumbur 3 месяца назад

      @@christianlempa I'm looking forward to the comparison. We have been using gitlab self-hosted for more than 8 years and it has always been reliable and stable. I've never tried Gitea before. We are currently also running it in docker because I want to gain some experience with Kubernetes first.

  • @TonyKirkland
    @TonyKirkland 2 месяца назад

    The Commodore 64 shirt is FTW! I still have a Commodore 128... I knew there was a reason I liked you! LOL

  • @ewenchan1239
    @ewenchan1239 Месяц назад

    I watched this video to the end and also tried to search on your channel -- did you film your gitea video and comparison video yet?
    Your help is greatly appreciated.
    Thank you.

    • @christianlempa
      @christianlempa  Месяц назад +1

      Hey! No, I'm still working on the Gitea video, that's planned for december ;)

    • @ewenchan1239
      @ewenchan1239 Месяц назад

      @@christianlempa
      Thank you.
      I'm only asking because you had written a comment in response to someone else asking you for a comparison with Gitea.
      Thanks.

    • @christianlempa
      @christianlempa  Месяц назад

      @@ewenchan1239 Oh yeah, so there are 2 videos planned in December, a Gitea tutorial + Gitea vs GitLab comparison, hope that makes sense ;)

  • @conganh4176
    @conganh4176 2 месяца назад

    can you create theme the digital life for sublime text, i like it so much

  • @baguwes
    @baguwes 3 месяца назад

    I have been using gitlab self-hosted for couple of years, for experiments CICD before i push to gitlab my company 🤣

  • @stevennicholas5472
    @stevennicholas5472 3 месяца назад +6

    Have you looked at Gitea?

    • @christianlempa
      @christianlempa  3 месяца назад +11

      Shame on you, you haven’t watched the video until the end 😜

    • @stevennicholas5472
      @stevennicholas5472 3 месяца назад

      @@christianlempa Haha, you got me; so i just watched it to the end. Looking forward to the Gitea episode.
      One thing i don't like around Docker, is storing data within the actual container. From what i saw, Gitlab seeds its own internal Postgres instance (though this may have just been the way you set it up)? Gitea allows you to map to an external DB, so i have Gitea running with volume mapping, and Postgres running in its own container, with volume mapping. I use YouTrack (free from Jetbrains for small teams) in its own container for managing projects, which Gitea can supposedly interface to (but i haven't set that up).
      You basically use Issues the same way i do, as a to-do list, and a way to keep track of bugs during the testing cycle, but YouTrack takes care of that for me.

    • @crazywolf13
      @crazywolf13 3 месяца назад

      ​@@stevennicholas5472 He explained why he set it up that way, didn't you watch the video?

    • @crazywolf13
      @crazywolf13 3 месяца назад

      @@stevennicholas5472 He explained that in the beginning. Didn't you watch the beginning?

    • @crazywolf13
      @crazywolf13 3 месяца назад

      @@christianlempa Do you also consider looking at forgejo ? Have not looked into the drama too much, but seems like it's also worth a look.
      Thanks and btw. this video vame at the perfect time, was just yesterday looking at what git hosting plattform to choose.

  • @DavidC-rt3or
    @DavidC-rt3or 3 месяца назад

    Was a little surprised you didn't deploy it into your pi kube cluster. :) Don't forget to setup doing a backup using the docker exec -t gitlab gitlab-backup create for example.

    • @christianlempa
      @christianlempa  3 месяца назад +2

      Haha yeah I want to look at gitea first and then look what to deploy on my cluster :)

    • @absynthe.6855
      @absynthe.6855 3 месяца назад

      @@christianlempa Check forgejo, it's a Gitea fork.

  • @FrontLineNerd
    @FrontLineNerd 3 месяца назад

    I need to learn how to properly put my mess of scripts into the Git that already exists before I graduate to building my own I think.

  • @BrentFreyEsq
    @BrentFreyEsq 3 месяца назад

    Been waiting for this! Hitting like 15 seconds in. :-D

  • @mawla14
    @mawla14 3 месяца назад

    How do you handle the well known memory leak bug?

  • @hedgehogform
    @hedgehogform 2 месяца назад

    I tried to host a repo over 100gb once. It didn't work at all and crashed the server. I didn't know about lfs back then lol.

  • @guillaumearchambault905
    @guillaumearchambault905 3 месяца назад

    I prefer Gitea for selfhost or small team. Gitlab is very good, but to heavy for me.

  • @JeffersonEPessoa
    @JeffersonEPessoa 2 месяца назад +1

    Heat at 30 degrees?? Here in Brazil, in the region where I live, the average is 40 and it easily reaches 48 degrees. KKKKKKK

  • @rfn900
    @rfn900 3 месяца назад +1

    Gitlab has a lot more features, but it will be an overkill for most homelab use cases because it is bloated AF. Gitea is nice and lean. The extra features are no worth the bloat for most people

  • @halllo54321
    @halllo54321 3 месяца назад

    Gitlab is pog champ

  • @smallclover
    @smallclover 3 месяца назад

    But why Gitlab and not Gitea or Forgejo? Is there a specific reason?

  • @alex.289
    @alex.289 3 месяца назад +34

    Gitea > Gitlab

    • @MrTidididi
      @MrTidididi 3 месяца назад +3

      Hell yes, facts

    • @blazer511
      @blazer511 3 месяца назад +5

      Hell no

    • @San_OO7
      @San_OO7 3 месяца назад

      ​@@blazer511bro check ram usage it does lack some features of GitHub, but most useful ones are already there like CI CD with gitea actions which are completely drop in compatible with GitHub actions

    • @silmelumenn
      @silmelumenn 3 месяца назад +4

      Gitea is lightweight, and lacks ton of gitlab features. They are different categories.

    • @brokstine
      @brokstine 3 месяца назад +1

      Google: Gitea owner drama

  • @tylersmith8662
    @tylersmith8662 20 дней назад

    Thoroughly enjoy your videos, I watch them all the time, but it blows my mind how you just end up faking it sometimes.
    IF this configuration works, it's relying on other configured services in your traefik config.
    This setup even copied exactly onto a brand new docker instance. Along with your traefik container tutorial, just plain out doesn't work. I do have other containers routing through traefik. Just not gitlab. Apparently there is some issue with it not wanting to allow that to happen.

  • @p30mehrdad
    @p30mehrdad 3 месяца назад

    after 5 years, now I say: gitea is mutch better than gitlab.

    • @chandradenny
      @chandradenny Месяц назад

      In what way?

    • @ariadataco6005
      @ariadataco6005 Месяц назад

      ​@@chandradenny Lightweight, Simpler Interface,Easy Installation and Maintenance,Faster Performance , Its based on Golang!! (not ruby!!!) , and also after 100 projects It does not need atleast 16GB of RAM!!! it works even with 512 MB

  • @matthewlandon1697
    @matthewlandon1697 3 месяца назад +2

    First 🎉

  • @azzazkhansiddiqui
    @azzazkhansiddiqui 2 месяца назад

    Your videos are informative but you move your mouse way too much and it makes me sick

  • @gasynormand8371
    @gasynormand8371 3 месяца назад

    Hi Christian,
    Could you please tell where we can find the traefik compose.yml that you're using and also any external config file like traefik.yml

    • @christianlempa
      @christianlempa  3 месяца назад +3

      You find it on my homelab GitHub repo! But I’ll make soon an updated traefik tutorial as well :)

    • @gasynormand8371
      @gasynormand8371 3 месяца назад +3

      @@christianlempa Thank you ! I'm looking forward to see your updated tutorial on traefik and also your Authentik configuration over gitlab.
      I've learnt so much watching your videos !

  • @Serizon_
    @Serizon_ 3 месяца назад +3

    codeberg / forejo ?