Hacker News new | ask | show | jobs
by acyou 1130 days ago
Does anyone host their own git repos in an enterprise environment? How do you do it and what are some good resources for learning how to do this?
7 comments

Yes, we do this using https://gitea.io/en-us/ on a private server (firewall, backups and a replica) for most projects. Github is only used when it's required by a stakeholder.
Gitea here. Should disclose that we ended up contributing to the project and developing an understanding of its code in order to integrate into our org, so ymmv. (but at least you can see the source).
+1 for gitea. Lightweight, easy to set up.
Are you interested in spinning up an entire CI environment? or something where anyone can push a branch to a file based mirror?

There are aspects of permissioning that the cloud git repo providers have that become more challenging to implement as a home grown solution and unless you have the resources to maintain it, it also becomes interesting.

On one hand, you can do `git clone --mirror` and you'll have a copy of the repo and put that on a file share... though there's no permissions or automatic syncs for it (or CI). If you want those, then you get into some development (and maintenance) of the git hooks.

Going to things like a local hosted gitlab instance means that you need to have a local docker hosted environment running, and someone to maintain that, and the storage for it, and all of the other fun that comes with administering a complex 3rd party application on prem. When things are going good, it's an hour or two a week... when something breaks its several hours with calls to support (you're using a paid / licensed version to get support... right?) from someone who has a sysadmin skill set rather than a developer skillset. And don't forget about DR.

Yes, primary on Gerrit, backup replica to $wherever. Bonus: actually usable code review platform.
You can just use GitHub Enterprise if you want GitHub, but self-hosted.
Yes using gitolite, it just works.

In the past I worked at a company which used the commercial solution from JFrog, I don't remember ever having problems with git availability as a user.

At a previous employer we used gitea along with jenkins.
Yes, gitlab. Self-hosted, behind a VPN.
This. Rock solid for the last 4 years.