3 ms·
Back to self hosting my code. Side note: Gitlab is one of the few companies to provide a self hosted version of their VCS. https://docs.gitlab.com/ee/install/
by xyst 3y ago
Back to self hosting my code.
Side note: Gitlab is one of the few companies to provide a self hosted version of their VCS.
https://docs.gitlab.com/ee/install/requirements.html https://docs.gitlab.com/ee/install/requirements.html
Also gitea is a much more lightweight option and can use sqlite for db. Much easier to deploy on a rpi
- petepete 3y agoSoft serve is lighter still. https://github.com/charmbracelet/soft-serve https://github.com/charmbracelet/soft-serve
- xyst 3y agoOoh this is very nice. Might use this for private projects. Problem with this is that it’s likely very unfamiliar with most folks. At least with gitea or gl-ce, there’s a familiar interface 99% of developers can use to browse and search code. Like if I want to share a quick nixOS config, I doubt most people would even be willing to pull the code and only browse via web interface.
- rigid 3y agonot sure how lightweight any of these are, but https://gitolite.com/gitolite/ https://gitolite.com/gitolite/ just needs git and ssh deployed. And it works like a charm.
- q0uaur 3y agorunning all my homelab / private repos off of a tiny gitolite3 server, and i'm always amazed that it all runs on an alpine linux VM that uses 75mb of RAM. for anything even just sharing with friends or whatnot i won't recommend it though, people do love their web-UI and having to explicitly give someone access can turn off people already.
- remram 3y agoFor a single author, if you have a server with SSH, you don't need Gitolite at all. The lack of anonymous public access is often a deal-breaker though.
- rigid 3y agoFor a single author you don't necessarily need any server at all. A cloud directory or zip files work well. But gitolite is so easy to setup & maintain, it's not a big difference and for r/w-access management within teams, it's priceless. I guess one could even hack anonymous access with "PermitEmptyPasswords yes" and "AuthenticationMethods none"
- remram 3y agoNo Gitolite requires keys.
- rigid 3y agoHence "hack". It needs keys for administration but at a first glance, I see no reason why a git-anon user couldn't be part of gitolite's git user.
- remram 3y agoYou might need to use another user if you want to set its shell to `gitolite-shell username` (no command= for password authentication) but then you'd need to chain sudo or something to have Gitolite run under its own user again... Seems very tricky. Or maybe you can write a shell that runs a gitolite-shell command is its arguments are not already gitolite-shell?
- pjot 3y agoAre you concerned at all about the raspi’s sd card corrupting/failing? I’d feel like this would always be at the back of my mind
- jsheard 3y agoYou don't have to run a Pi from an SD card nowadays, and shouldn't do if you can help it. They've supported USB boot for a while and the Pi5 can also boot from an NVMe SSD hooked up to the exposed PCIe lane.
- seanmceligot 3y agoThis happened to me Tuesday September 28th 2001 at 3:30pm. I know because I never rewrote the complicated e-paper code that I lost when my SD card died without a backup :(
- xnyan 3y agoAs others have said, Pi now supports USB boot. An inexpensive USB to sata adaptor and a 128GB SSD (~$15) is the most inexpensive option to get started and performs very well.
- xyst 3y agoI run my rp5 off of nvme
- strogonoff 3y agoSourcehut is great, and I doubt Drew would take the hosted version in that direction.
- Zambyte 3y agoYeah, seems unlikely[0] [0] https://drewdevault.com/2023/08/29/2023-08-29-AI-crap.html https://drewdevault.com/2023/08/29/2023-08-29-AI-crap.html
- AnthOlei 3y agoGerrit for really fine grained control
- itherseed 3y agoOneDev is really slim and have all I need to start. https://github.com/theonedev/onedev https://github.com/theonedev/onedev
- Zambyte 3y agoI am of the school of thought that you should be using multiple remotes anyways. I don't think there is a good reason not to. Codeburg and, as another mentioned, Sourcehut may be good places to host your code in addition to your self hosted remote. Radicle[0] is also a really interesting option. [0] https://radicle.xyz/ https://radicle.xyz/
- remram 3y agoI can't wait to check out Radicle again, 1.0 seems imminent. I wonder how usable the average developer will find it.
- thiht 3y agoIf you're concerned, you should switch the license of your code, not really where you host it. As long as your license allows LLM/AI models to train on your code, why would you be mad that it does?
- xigoi 3y agoMy code has a license that disallows using it to create proprietary software, but it seems that proprietary LLMs are still being trained on it.
- thiht 3y agoTraining on your code and using your code are very different things. As a human, if your code is open, I can read it, learn how it works and reuse my knowledge to create proprietary source code without infringing on your license.
- xigoi 3y agoI am talking about the model itself, not the code it produces. You are not proprietary software.
- remram 3y agoAlmost none of the common licenses allow this, because at the very least they have an attribution requirement. Licenses are being ignored.
- thiht 3y agoAttribution doesn’t apply on training. We’d all be screwed otherwise, it would mean you’d have to attribute everything you learned while reading open source codes to every codebase you read every time you write code.
- remram 3y agoEither attribute or don't use it, that's what the license says. "Doesn't apply" is just opinion right now until settled in court, hopefully the other way. I'm curious to hear why you think so though? Any other license terms you routinely ignore?
- danirod 3y ago> Also gitea is a much more lightweight option and can use sqlite for db. Much easier to deploy on a rpi Worth mentioning Forgejo as well (https://forgejo.org https://forgejo.org), which is Codeberg's fork of Gitea. Same features and as lightweight as Gitea. Hard-forked a couple of months ago after some transparency concerns from the new parent company that owns Gitea now.
- remram 3y agoIsn't it just the same thing with a different name? Why is it worth mentioning at this point in time?
- hnarn 3y agoBecause functionality isn’t the only thing everyone cares about, I use Forgejo for ideological reasons and so do probably most people since it’s mainly an ideological fork. Why would it not be worth mentioning? The question is quite strange.
- remram 3y agoThe project and community might be worthwhile, but as long as the product is the exact same, I don't see what there is to mention. I'm excited to see what the future holds though, more attention in this space sure sounds good. Unless my information is out of date?