News for hackers. Stuff that matters.
Re:Gitlab 13.9 by ducktective on Monday February 22, 2021 @03:35PM (#26230214)
Between Gitlab,Gitea and bare-git repos, which one should I use for personal (1-man) projects? Here are my thoughts:

Gitlab is resource-hungry but provides CI solutions and is kind of a setup-once-then-forget solution.

Gitea is light weight but for any additional functionality third-party utilities are needed.

Re:Gitlab 13.9 by kstrauser on Monday February 22, 2021 @04:20PM (#26230795)
Here's my decision tree:

Do you actually need CI? That's not a trick question; I don't use it on any of my personal projects. If so, GitLab is quite nice.

I absolutely love Gitea. If there's a nonzero chance I might ever want to rope in a friend on a personal project, Gitea makes it super easy to configure their permissions, let them open pull requests, etc.

If I know I'm never going to involve someone else, and I won't need CI, then bare-git repos are brilliant. I use this for things like maintaining a version history of files in /etc on my servers.

Re:Gitlab 13.9 by kipari on Monday February 22, 2021 @03:54PM (#26230464)
I started out using Gitlab for my personal repos, but have switched to using bare Git repos on a VPS for the last few years. If you won't be collaborating with anyone else, nothing beats being able to just write:

   ssh $HOST git init --bare repo/foo
   git remote add origin $HOST:repo/foo
Re:Gitlab 13.9 by cat199 on Monday February 22, 2021 @04:02PM (#26230567)
to note, gitolite provides a very simple addition to the 'simple git server over ssh' scenario without much hassle, might be worth looking into for this use case
Re:Gitlab 13.9 by kingosticks on Monday February 22, 2021 @04:57PM (#26231214)
If it's just you using it, what additions does gitolite bring (genuine question)?
Re:Gitlab 13.9 by cat199 on Tuesday February 23, 2021 @02:56PM (#26242084)
good point on individual users -

using the multiuser support for automation sub-accounts ("service accounts") would be one thing; general 'separation of concerns' for higher security isolation (gitolite runs under a separate SSH account that can only run gitolite), has some hooks for offering read-only pull support using the git protocol pretty transparently.

but yes, i suppose pure single user it's not the hugest advantage.

Re:Gitlab 13.9 by jayd16 on Monday February 22, 2021 @04:06PM (#26230620)
Why would I tune for git init?
Re:Gitlab 13.9 by hs86 on Monday February 22, 2021 @04:13PM (#26230719)
This very release features a new mode [0] with reduced memory consumption. It probably still gets undercut by Gogs/Gitea, but it may be enough to run GitLab on a cheaper VPS tier than before.

[0] https://about.gitlab.com/releases/2021/02/22/gitlab-13-9-rel...

Re:Gitlab 13.9 by ksec on Tuesday February 23, 2021 @12:03AM (#26233980)
I think this is aiming at 2GB Memory Tier. For majority of VPS that means they could move from $20/month to $10/month.

The problem is most popular Cloud/VPS ( DO, Linode, Vultr, UpCloud ) this tier gets you 1 vCPU only. Not sure how well this will work. Will have to test this.

Or as others have mentioned, just use Gitlab.com

Re:Gitlab 13.9 by richardwhiuk on Monday February 22, 2021 @03:49PM (#26230398)
IMHO, just use GitLab.com or GitHub.com's personal private repos options.
Re:Gitlab 13.9 by cmckn on Monday February 22, 2021 @04:20PM (#26230798)
Agreed; I have pretty limited time to spend on personal projects, so I try to minimize the amount of "infra" I have to maintain. I'm an activist about some things, but running my own git remotes and CI isn't one of them.
Re:Gitlab 13.9 by Aeolun on Monday February 22, 2021 @05:03PM (#26231288)
Running my own git remotes and infra is my personal project ;)
Re:Gitlab 13.9 by cmckn on Monday February 22, 2021 @07:21PM (#26232419)
Godspeed! I tried deploying gitlab on my k8s cluster at home and ran screaming after an hour or so haha
Re:Gitlab 13.9 by joshlambert on Wednesday February 24, 2021 @02:10AM (#26247435)
@cmckn - PM @ GitLab here - sorry to hear you had a poor experience with running our GitLab chart on k8s. We've been trying really hard to make this easier, but there is still some room to go especially on the documentation front: https://gitlab.com/groups/gitlab-org/-/epics/5273.

I'd love to hear what you had trouble with, so we can continue to improve. If you'd like, can also open an issue here: https://gitlab.com/gitlab-org/charts/gitlab/-/issues

Re:Gitlab 13.9 by Aeolun on Tuesday February 23, 2021 @07:40AM (#26236614)
Ah, yeah. I can’t be bothered with that either. I just run omnibus on a completely separate VM.
Re:Gitlab 13.9 by kevincox on Monday February 22, 2021 @03:54PM (#26230462)
As I see it:

GitLab has CI and a whole host of other features (artifact repositories, pages, ...)

Gittea is a nice WebUI for viewing source files with simple issue and patch management.

bare-git is fine if you don't need any web presence.

Re:Gitlab 13.9 by qbasic_forever on Monday February 22, 2021 @04:00PM (#26230532)
Gitea is a lot more than just a web UI. It's a whole multi-tenant platform if you need--it can act as an OAuth2 provider and drive SSO, login, etc. for all kinds of other apps or services. You could even have gitea used as a login/auth for a kubernetes cluster (with dex). It's like gitlab but way less documentation and slightly less polish.
Re:Gitlab 13.9 by bsder on Monday February 22, 2021 @04:45PM (#26231087)
> it can act as an OAuth2 provider and drive SSO, login, etc. for all kinds of other apps or services.

Can I get a link to documentation/discussion on that?

Re:Gitlab 13.9 by qbasic_forever on Monday February 22, 2021 @05:08PM (#26231331)
OAuth2 provider config: https://docs.gitea.io/en-us/oauth2-provider/

For dex (k8s auth), specifically: https://dexidp.io/docs/connectors/gitea/

Hooking it up to do SSO for other OAuth/OIDC apps is pretty similar. For something that doesn't do OAuth you could use vouch proxy in front of it and get SSO: https://github.com/vouch/vouch-proxy/issues/203

It's really slick and fun to throw gitea on a cheap VPS, then a few apps like drone CI, a k3s kubernetes cluster, etc. and have it all just interoperate and auth together seamlessly. I won't lie though it's an enormous amount of annoying and badly documented work to get it all together.

Re:Gitlab 13.9 by cat199 on Monday February 22, 2021 @04:03PM (#26230582)
> bare-git is fine if you don't need any web presence.

cgit or gitweb can be nice additions to bare git for simple repository browsing without the full 'project managment' aspects that gitlab/gitea/redmine etc. add

Re:Gitlab 13.9 by kingosticks on Monday February 22, 2021 @05:28PM (#26231550)
Are there any nicer interfaces for gitweb? The basic functionality (just browsing a repo) is perfect but it's not the prettiest.

Edit: this looks like what I mean, just so happens to be github style but that's not a requirement! https://github.com/kogakure/gitweb-theme

Re:Gitlab 13.9 by MaxBarraclough on Monday February 22, 2021 @04:00PM (#26230538)
Another option might be SourceHut, although it's officially still in alpha. https://sourcehut.org/
Re:Gitlab 13.9 by kstrauser on Monday February 22, 2021 @04:15PM (#26230736)
I've tried to like Sourcehut, but I just can't. While I know some people love the "pull requests by email" workflow, it adds so much more friction for me that I don't even want to see what else the site has to offer.
Re:Gitlab 13.9 by blueflow on Monday February 22, 2021 @04:15PM (#26230737)
I'm leaving this here, no judgement, no further comment (ddevault is the CEO of sourcehut):

https://news.ycombinator.com/threads?id=ddevault

Re:Gitlab 13.9 by INTPenis on Monday February 22, 2021 @04:53PM (#26231169)
I don't have an answer for you but your question made me think; "why can't other gitlab alternatives use their gitlab runner?"

That shouldn't be hard to do, make a gitea that can use gitlab runners, right? It must be an open protocol.

Re:Gitlab 13.9 by salzig on Monday February 22, 2021 @06:32PM (#26232082)
interesting thought, isn't gitlab-ci-runner only pulling jobs to be executed and then pushes back logs? shouldn't be that hard to implement.
Re:Gitlab 13.9 by INTPenis on Tuesday February 23, 2021 @02:57AM (#26234847)
Exactly, it polls the Gitlab API for jobs, runs the jobs and sends back logs.

Any gitlab alternative could implement this and make each other re-invent a lot less code, while implementing Gitlab-like CI.

Re:Gitlab 13.9 by Aeolun on Monday February 22, 2021 @05:02PM (#26231263)
Gitlab is not terribly resource hungry? And not very latency sensitive either, so you can put it wherever you get the cheapest/best hosting.
Re:Gitlab 13.9 by PurpleFoxy on Monday February 22, 2021 @06:11PM (#26231935)
It requires quite a lot of memory since it’s a massive rails app.
Re:Gitlab 13.9 by qbasic_forever on Monday February 22, 2021 @03:58PM (#26230520)
bare repo synced up to S3 is my vote, with end to end encryption enabled. Why give some third party access to your data if you don't need to?
Re:Gitlab 13.9 by xtracto on Monday February 22, 2021 @04:08PM (#26230650)
S3 is a 3rd party for most people.
Re:Gitlab 13.9 by qbasic_forever on Monday February 22, 2021 @05:12PM (#26231378)
Yes, hence the end to end encryption: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingC... Once enabled as far as amazon is concerned your bucket is an entirely random bag of bits, they have no idea what's inside or how to access it. Even if compelled by a state government amazon can't give up your data in any usable form without your encryption keys.