Lurker News
Back to discussion

Comment by Hamcha

Hamcha2 replies#
If you truly wish to avoid this kind of problems you should think about hosting your own platform rather than jumping to the next one. Just because the smaller players haven't done anything bad doesn't mean they wouldn't.

Gitea/Gitlab are crazy easy to set-up nowadays, especially with a fully working CI/CD setup (I use Gitea+Drone and I love it, Gitlab comes with its own)

varispeed7 replies#
You are essentially shifting the problem from entity to entity and from one domain to another. If you self host your repository, your hosting provider can pull the plug and you essentially end up in square one. If you decide to self host, you should consider multi-cloud cross continent and cross political doctrine cluster.
PinguTS1 reply#
Moving your own self-hosted stuff around different hosting providers is easy and doesn't interrupt the service, at least not for long. Just open an account at a new hosting provider. Fire up, your backup, changing DNS and you are up and running.
jlokier5 replies#
This is great until your DNS account is blocked at the registrar for similarly opaque reasons.

Continue this thread — 5 replies

kps1 reply#
You don't need a hosting provider. Your code fits on each developers' machine. (Remember when git was touted as a distributed version control system?) If it doesn't, you're at the scale where you're not worrying about your hosting provider dropping you — they're worried about you dropping them.
jedieaston2 replies#
That's just as true of GitHub though, and isn't the problem. The problem is the related services, like issues, PRs and now CI/CD which all sit with the code but don't come down on a clone. That problem still hasn't been solved, which could mean your whole knowledge base goes missing if you lose access to the server. CI/CD can maybe be replicated from what's on your laptop, but if you don't have the PR history it could spell doom for big codebases that don't use extended commit messages a lot.

Continue this thread — 2 replies

luckylion1 reply#
> If you self host your repository, your hosting provider can pull the plug and you essentially end up in square one.

Yeah, but it's much, much, much less likely than some script at GitHub getting triggered and shutting your account down. And even the cheap hosting providers do have ultra-premium-platinum-support compared to Google, GitHub, Amazon etc.

MattGaiser2 replies#
> And even the cheap hosting providers do have ultra-premium-platinum-support

It is an odd thing to think that GoDaddy may have more merit as a solution than Github for hosting code...

Continue this thread — 2 replies

awakener62#
I've had to resort to this I have 2 CentOS servers at the office. One running Gitlab CE the other running Gitlab Runner. We can't risk getting burned by Github or Gitlab if we forget to use the correct words in repos.

Switching domain registrar and re-routing DNS is a simple and cheap thing if it ever becomes necessary.

Silhouette1 reply#
If you self host your repository, your hosting provider can pull the plug

If you self-host your repository, you don't have a hosting provider. There is no-one to "pull the plug" on the server at my business's office except the people who work in the building who could literally pull the plug, and I suppose the electricity and phone companies and our ISP.
What you are talking about isn't self-hosting, it's hosting in the cloud on VMs you're renting directly. This is an intermediate step between self-hosting and using a fully hosted service like GitHub.
With cloud-hosting, you are probably still subject to the whims of your hosting service. For example, you might be subject to occasional forced restarts of a long-lived instance if your hosting service needs to restart or replace the underlying physical server.
However, in most cases, unless you're doing something illegal using their equipment or compromising their system in some way, these hosting services don't much care what you're running on your virtual box. This option is still far less risky than using a fully-hosted service, not least because you retain full control over the underlying data so there is almost nothing that can happen because of your hosting provider that a reasonable backup strategy can't fix within a relatively short amount of time.

R0b0t16 replies#
Your ISP could refuse service. This has happened. If you manage to start an ISP people could refuse to peer.

Continue this thread — 6 replies

threatofrain#
Can I have a single company act as the aggregator of all these technical abilities and package it into a single software product? :D
sreevisakh#
There are two things you should ensure while self-hosting:

1. Always have independent and automatic data backup. A storage medium attached to a raspberry pi is plenty enough
2. Always choose a setup that you can deploy and migrate trivially
It wouldn't matter what the hosting provider does if you have the power to pack up your bags and move elsewhere when they misbehave.

shash72 replies#
Problem is that there are so many services that integrate with github directly that moving to other alternatives will also require moving/replacing those 3rd party services.
ghostbrainalpha2 replies#
Is it possible to self host the code, but then automate syncing backups to public Github.

That way you can use 3rd party integrations, and be part of the Github ecosystem 99% of the time, but when they do something like this, you have an emergency place to work from?

zrail#
I believe Gitea has two way syncing built in.
gumby#
Plenty of projects do this, hosting on their own infrastructure and syncing one way to a R/O repo on github for those who find that for some reason easier to access. A couple of examples are boost and llvm
fennecfoxen#
Embrace, extend.