News for hackers. Stuff that matters.
Re:Codeberg a GitHub Alternative from Europe by strenholme on Monday October 17, 2022 @12:40PM (#33236094)
Here is a list of free Git hosting services for open source software:

• https://github.com/

• https://gitlab.com/

• https://bitbucket.org/

• https://codeberg.org/ (As per the linked article)

• https://sr.ht/ (Sourcehut)

Codeberg and Sourcehut appear to use open source code for their web page backend; the others seem to use proprietary software.

Souceforge also has a proprietary free-to-use for open source Git hosting service, but their service is a little buggy so I would use one (or in my case, all) of the five I have listed.

If there are any others, please let us know.

In terms of continuous integration, in my particular use case, the automated CI tests take about an hour to all run, so I have a Raspberry Pi server the size of a deck of cards which runs Ubuntu 22.04. The server uses a crontab which checks to see if the Git repo has been updated once a day, and runs the tests inside a Docker container if the repo has changed. Some problems, such as automated testing, don’t need to be solved by putting everything in a cloud.

Re:Codeberg a GitHub Alternative from Europe by severino on Monday October 17, 2022 @12:46PM (#33236168)
Gitee (gitee.com) is also a free hosting service that can be used for OSS, afaik.
Re:Codeberg a GitHub Alternative from Europe by mistrial9 on Monday October 17, 2022 @02:04PM (#33237446)
China-based
Re:Codeberg a GitHub Alternative from Europe by severino on Monday October 17, 2022 @02:10PM (#33237503)
I know, but not all of the alternatives noted by the parent post are hosted in Europe, either. Some are US based, and it doesn't mean your project can't be subject to censorship.
Re:Codeberg a GitHub Alternative from Europe by bauruine on Monday October 17, 2022 @02:04PM (#33237449)
Which is a Chinese site hosted behind the GFW. I can't even access the site because they block my IP address. I really hope OSS projects don't consider them for their hosting.
Re:Codeberg a GitHub Alternative from Europe by severino on Monday October 17, 2022 @02:13PM (#33237532)
I guess it's the same stuff developers from other countries like Iran, Syria, etc., face when trying to work with Github. It's a shame many OSS projects find providers like these OK when there should be plenty of alternatives that don't block users by country.
Re:Codeberg a GitHub Alternative from Europe by RobotToaster on Monday October 17, 2022 @03:27PM (#33238377)
Fun fact, they're literally backed by the Chinese government who are trying to promote open source, I assume because it can't be embargoed.

On the bright side I suppose that means they shouldn't have any of those pesky commercial pressures to start charging people.

I don't think I need to say what the down sides are.

Re:Codeberg a GitHub Alternative from Europe by FpUser on Monday October 17, 2022 @05:16PM (#33239610)
>"Fun fact, they're literally backed by the Chinese government who are trying to promote open source, I assume because it can't be embargoed."

And then the feds come for you for breaking some of those US sanctions you had no idea about.

Re:Codeberg a GitHub Alternative from Europe by account42 on Tuesday October 18, 2022 @05:58AM (#33245017)
Not everyone is in the US.
Re:Codeberg a GitHub Alternative from Europe by FpUser on Tuesday October 18, 2022 @01:35PM (#33251039)
True. But their hairy paws may still reach.
Re:Codeberg a GitHub Alternative from Europe by computerfriend on Monday October 17, 2022 @10:23PM (#33242241)
Subject to mandatory review by a censor before your code gets published.

https://finance.yahoo.com/news/gitee-chinas-answer-github-re...

Re:Codeberg a GitHub Alternative from Europe by sva_ on Monday October 17, 2022 @12:54PM (#33236312)
> gitlab

Pretty sure GitLab is open source.

Re:Codeberg a GitHub Alternative from Europe by TAForObvReasons on Monday October 17, 2022 @12:56PM (#33236356)
GitLab is a nuanced situation.

There is a FOSS GitLab https://gitlab.com/gitlab-org/gitlab-foss

The hosted gitlab.com instance uses EE features so parent is correct to say that the gitlab.com site is not open source.

Re:Codeberg a GitHub Alternative from Europe by hk__2 on Monday October 17, 2022 @04:24PM (#33239072)
> The hosted gitlab.com instance uses EE features so parent is correct to say that the gitlab.com site is not open source.

It’s OSS but with proprietary parts. That’s the issue with the term "open-source": their source code is indeed open [1] but it’s not 100% free (as in freedom).

Edit: mmh apparently I’m mistaken; according to another commenter this is called "open-core" and not "open-source" [2].

[1]: https://gitlab.com/gitlab-org/gitlab

[2]: https://news.ycombinator.com/item?id=33237641

Re:Codeberg a GitHub Alternative from Europe by CameronNemo on Monday October 17, 2022 @05:57PM (#33240046)
Another term you might be looking for is "source available", meaning you can read the source code but not modify or distribute it without a license.
Re:Codeberg a GitHub Alternative from Europe by ptman on Tuesday October 18, 2022 @01:31AM (#33243320)
Open core
Re:Codeberg a GitHub Alternative from Europe by TAForObvReasons on Monday October 17, 2022 @12:54PM (#33236317)
Codeberg source https://codeberg.org/Codeberg/gitea

Codeberg is a fork of Gitea https://github.com/go-gitea/gitea which curiously uses GitHub for hosting.

Re:Codeberg a GitHub Alternative from Europe by hk1337 on Monday October 17, 2022 @03:58PM (#33238766)
Didn't even change the readme, it seems.

*EDIT* https://codeberg.org/

I'm guessing they're just maintaining their own copy and Codeberg is more about the service rather than being another git hosting project.

Re:Codeberg a GitHub Alternative from Europe by jpe90 on Monday October 17, 2022 @12:59PM (#33236423)
I tried out self hosting on my $5/mo VPS and found it much easier than expected. https://jeskin.net/blog/self-hosting-git-with-stagit/
Re:Codeberg a GitHub Alternative from Europe by giobox on Monday October 17, 2022 @01:25PM (#33236836)
Can't you just run gitlab or whatever else out of a container in 5 seconds nowadays? Map a single volume and you are likely done. Its not that it's hard to self host that I choose to use third party git services (its clearly not!), it's just that the benefits of self hosting a git repository are increasingly few unless you have strict security requirements etc etc, and the free options are so good now. Running self hosted git is trivial in 2022 if you really need to, with many one-line container deployment options to choose from.

> https://registry.hub.docker.com/r/gitlab/gitlab-ce/

While it might be fun to self-host, a 5 dollar a month fee to run it is also not price competitive with the free or paid individual tiers at github.com for a single user too. I'd probably only do this if the git repo was being hosted on my home LAN.

> https://github.com/pricing

Re:Codeberg a GitHub Alternative from Europe by jpe90 on Monday October 17, 2022 @01:43PM (#33237152)
Yeah I'm sure you could. I use that VPS for my blog and personal projects also so I wanted to keep resource utilization to a minimum and not administer a webapp.
Re:Codeberg a GitHub Alternative from Europe by emilengler on Monday October 17, 2022 @01:56PM (#33237354)
But why? If you have an SSH server running, you can immediately setup a git server. Just do git init —-bare, no gigantic web server overhead.

https://rgz.ee/git.html

Re:Codeberg a GitHub Alternative from Europe by nine_k on Monday October 17, 2022 @02:26PM (#33237686)
Gitlab has a nice GUI, team features, and CI/CD integration. It's a reasonable choice for a team.

I also remember the there were tools that use Git as a backend for a change review system, and for an issue-tracking system (much like the stuff which Fossil has integrated).

With that, you theoretically don't need a central server at all, as long as you can send patches to each other. In practice, a central server is an important convenience that helps keep the history synchronized between several developers.

Re:Codeberg a GitHub Alternative from Europe by throwaway894345 on Monday October 17, 2022 @02:13PM (#33237536)
Presumably people value the UI (also, what is the "gigantic web server overhead" you're referring to?).
Re:Codeberg a GitHub Alternative from Europe by megous on Monday October 17, 2022 @06:11PM (#33240168)
Ever tried to install gitlab? It's like 1GiB compressed package. lol
Re:Codeberg a GitHub Alternative from Europe by layer8 on Monday October 17, 2022 @07:57PM (#33241204)
Gitea is much more lightweight.
Re:Codeberg a GitHub Alternative from Europe by slow_typist on Monday October 17, 2022 @03:06PM (#33238133)
Yeah you could even use recent ssh clients if you leave gitea, which is written in go, out of the equation:

https://github.com/go-gitea/gitea/issues/17798

Re:Codeberg a GitHub Alternative from Europe by bee_rider on Monday October 17, 2022 @04:34PM (#33239183)
It is easy to give people read-only git access no SSH, if you want to share your code with the internet at large?
Re:Codeberg a GitHub Alternative from Europe by jpe90 on Monday October 17, 2022 @05:19PM (#33239640)
If you add a git-daemon-export-ok file to the repo, it's accessible read-only over the git protocol. That's how all my repos on https://git.jeskin.net are setup.

https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protoco...

Re:Codeberg a GitHub Alternative from Europe by bee_rider on Tuesday October 18, 2022 @04:57PM (#33253817)
note: Transposing "it" and "is" has made my question look sort of passive-aggressive or sarcastic, this was accidental.
Re:Codeberg a GitHub Alternative from Europe by jpe90 on Sunday October 23, 2022 @05:15AM (#33305653)
The intent was clear from the context, no worries!
Re:Codeberg a GitHub Alternative from Europe by mro_name on Monday October 17, 2022 @03:44PM (#33238569)
no, it's too bloaty to run it longer than the mentioned 5 seconds in good faith to not deplete the biosphere with bloat like that.
Re:Codeberg a GitHub Alternative from Europe by jcul on Tuesday October 18, 2022 @08:18AM (#33246097)
Stagit looks really nice and lightweight.

I like the idea of generating static webpages, it sounds great for read only content.

However, it doesn't sound very good for collaboration. Someone can come your repo but it doesn't seem easy for them to submit changes back upstream to your repo?

Re:Codeberg a GitHub Alternative from Europe by jpe90 on Sunday October 23, 2022 @05:13AM (#33305644)
The best way to collaborate would be just sending patches, either with git send-email or as an attachment to a regular message. Then the author applies them and the repo/stagit will display the change.

https://git-send-email.io/

Re:Codeberg a GitHub Alternative from Europe by capableweb on Monday October 17, 2022 @01:23PM (#33236790)
Worth noting as well, from the list of various hosting services, Codeberg is the only one explicitly for FOSS software and not for proprietary software. Sourcehut seems to be in the box of everything for running the service is FOSS but they would be OK with hosting non-FOSS software, whereas Codeberg isn't for hosting proprietary software at all.

From the FAQ (https://docs.codeberg.org/getting-started/faq/#is-it-allowed...):

> Is it allowed to host non-free software?

> Our mission is to support the creation and development of Free Software; therefore we only allow repos licensed under an OSI/FSF-approved license. For more details see Licensing article. However, we sometimes tolerate repositories that aren't perfectly licensed and focus on spreading awareness on the topic of improper FLOSS licensing and its issues.

> Can I host private (non-licensed) repositories?

> Codeberg is intended for free and open source content. [...]

Re:Codeberg a GitHub Alternative from Europe by alexwennerberg on Monday October 17, 2022 @03:41PM (#33238539)
There was a discussion on sourcehut about making this change to their TOS, not sure what happened with it though

https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3CC32T7UNXIK7O....

Re:Codeberg a GitHub Alternative from Europe by bee_rider on Monday October 17, 2022 @01:34PM (#33236984)
I think we should emphasize that Sourcehut is just currently free while it is in alpha. Mr. DeVault been very upfront about the fact that he's planning to start charging eventually. From his FAQ,

https://man.sr.ht/billing-faq.md#why-should-i-pay-when-githu...

The point is to set up a responsible financial situation between himself and the users and avoid the bad incentive structures that "free" services have ("Free" until VC money runs out, at which point it is roll of the dice whether they'll be monetized through acquisition, or some annoying scheme).

Re:Codeberg a GitHub Alternative from Europe by Funes- on Monday October 17, 2022 @02:07PM (#33237472)
I think that makes a whole lot of sense. The actual post explains it wonderfully:

>Most other companies are financially supported by venture capital, in the form of large investments from a small number of people. If you use their services for free, or even if you pay the modest fees for their paid plans, they are not incentivized to serve your needs first. They are beholden to their investors, and at their behest, they may implement changes you don't like: invasive tracking, selling your data, and so on.

>SourceHut has not accepted, and will never accept, any outside investments. Our sole source of revenue is from sr.ht users making their account payments. This incentivizes us to only consider your needs, and not to use you as a resource to be exploited. The financial relationship is much more responsible for both parties.

A very commendable stance.

Re:Codeberg a GitHub Alternative from Europe by albert180 on Monday October 17, 2022 @02:16PM (#33237567)
Well Codeberg is also just an German association. Everyone can become a member and the member dues finance the server costs
Re:Codeberg a GitHub Alternative from Europe by jabo on Monday October 17, 2022 @04:36PM (#33239208)
Thank you for calling this out! It's great to see other products adopt this stance and this is one of the reasons we chose to not raise funds for Typesense [1].

From an article I wrote recently on this topic [2]:

> Selling Stock vs Selling Search

One key realization we had is that when we bring on investors, we are essentially bringing on a new group of customers - customers for whom the product is our company stock.

The value this group of customers (investors) gets from the product they are buying (stocks) is appreciating stock prices. And the way we can keep this group of customers happy is by regularly raising the next round of funding which is when stock prices appreciate, or having a liquidity event to make a return on investment.

We are concerned that “launching” a new “product line” (selling stocks) and bringing on a whole new group of customers (investors), would cause us to lose our precious bandwidth that could have otherwise been spent on our core search product that our primary group of users and customers expect from us. After all, the “company stock” product line would not exist without the core search product.

[1] https://typesense.org

[2] https://typesense.org/blog/why-we-are-not-raising-funds/

Re:Codeberg a GitHub Alternative from Europe by NeutralForest on Monday October 17, 2022 @05:43PM (#33239905)
The guy very SourceHut is very nice and dedicated to the project, his blog is also interesting to understand the philosophy being SourceHut.
Re:Codeberg a GitHub Alternative from Europe by endgame on Monday October 17, 2022 @05:53PM (#33240015)
I've been paying for years, because I agree with these principles. It's a good service.
Re:Codeberg a GitHub Alternative from Europe by kodah on Monday October 17, 2022 @06:01PM (#33240077)
Does SourceHut still have an aversion to Kubernetes and Docker? Last year I was trying to setup SourceHut on my home infra (which is Docker/SystemD based, but was Kubernetes based) and I was told I'd be banned if I asked about it, and that they don't support that kind of software. Super weird interaction from someone I otherwise used to admire.
Re:Codeberg a GitHub Alternative from Europe by dspillett on Monday October 17, 2022 @06:36PM (#33240387)
Some Kubernetes and Docker people get somewhat religious about it, and rather than taking “I/we don't support that and don't have any immediate plans to, but feel free to try it yourself” as a valid response will plead, nag, and otherwise try to cajole a project's maintainer's to reconsider, sometimes being irritatingly persistent and calling into question a person's overall intelligence because they don't currently want to directly support that plumbing. Such discussions can become time-consuming, tiresome, and (if really persistent) difficult to just ignore.

> be banned if I asked about it

I assume this means the maintainer(s) have experienced the above a few times, and have given up trying to be more polite about it!

Don't take it personally. If you want to use a tool with that plumbing then feel free to DIY. If you make it work well, perhaps publish your process and/or images and support it for others who need/want that support.

Re:Codeberg a GitHub Alternative from Europe by sph on Monday October 17, 2022 @07:25PM (#33240898)
Bah, what a dumb argument. There's a whole ocean between "we don't really support Docker, you're on your own" and "if you dare ask this again, you'll get banned." That's not the Kubernetes guys being religious here.

Also, it doesn't even make sense on the engineering point of view. I understand not liking Docker the company or Kubernetes the product, but Linux namespaces are a kernel level facility, and banning people because they dare ask how to integrate this product with a native subsystem seems absolute zealotry from people with oversized ego.

Nothing wrong with that, but let's call a spade a spade. It's their project, so it's their right to be a prick about it, but that shouldn't stop other people to call them out on it.

Re:Codeberg a GitHub Alternative from Europe by dspillett on Monday October 17, 2022 @07:36PM (#33241006)
> There's a whole ocean between "we don't really support Docker" and "if you dare ask this again, you'll get banned."

There is. And I'm suggesting that the water filling that ocean has come from having the same discussion over and over again with people who have asked in the past, each thinking they might be the one to finally help you see the light. I've not personally dealt with it from the point of view of infrastructure choices, but I hear tale of those who have, and I've been subject to it with regard to people who didn't agree with a licence choice so can speak for how much it makes you not want to engage at all just-in-case.

I'm not suggesting you'd be like that, but I understand not wanting to engage on the matter based on previous experiences.

Re:Codeberg a GitHub Alternative from Europe by d3nj4l on Monday October 17, 2022 @10:57PM (#33242454)
Perhaps there is a difference between "not wanting to engage on the matter" and "banning someone on sight"? Maybe there's polite ways to say, "Sorry, but we're not interested in supporting docker, and we don't care about any arguments for it" that would take less effort than rudely telling someone to fuck off?
Re:Codeberg a GitHub Alternative from Europe by dspillett on Tuesday October 18, 2022 @06:51AM (#33245411)
Of course the suggestion of “banning on sight” could have been an attempt at humour by way of hyperbole, something I should have noted in my previous reply.

> that would take less effort than

Unfortunately, not always. Sometimes the only way to convince people that it isn't worth their time continuing to try to change your mind, is to blatantly be a dick about it. I try not to jump straight to dickishness though: I'll state my position politely once, I may have time to repeat that once or twice more, then out come the big guns.

On a public mailing list or similar I might be more blunt: linking to past discussions in the first instance then jumping to DickCon1. On a public group the discussion is taking more than just my time and might encourage others to chime in and drag the matter instead of letting it close.

And again: the suggestion of “banning on sight” could have been intended as an attempt at humour by way of hyperbole, rather than the direct “off you fuck” that was felt. Communication of sentiment online is very prone to errors like that.

Re:Codeberg a GitHub Alternative from Europe by d3nj4l on Tuesday October 18, 2022 @07:16AM (#33245602)
> Communication of sentiment online is very prone to errors like that

This is exactly my point: given that online communication is low bandwidth, why are you attempting humour with someone new, who is therefore very unlikely to get it? (And, given Drew's track record, I find it extremely unlikely that he is just trying to be funny, but that's a different matter.)

Also, your point about not wanting to spend more time on a discussion than is necessary, you can simply... not. Say not interested, post a link to a FAQ that covers your stance, and simply don't engage. You don't need to be offensive. You don't need to be worried about people dragging the matter. It's just a discussion.

Re:Codeberg a GitHub Alternative from Europe by kodah on Tuesday October 18, 2022 @11:08AM (#33248405)
It was on Libera in a public channel. It wasn't humor. I'm very used to the IRC crowd and recognizing even the cringiest of humor tactics. There's also another person on this thread now who Drew reacted similarly on a mailing list.

I will be very surprised if Drew isn't called in by his communities at some point.

Re:Codeberg a GitHub Alternative from Europe by kodah on Monday October 17, 2022 @09:49PM (#33242049)
> Some Kubernetes and Docker people get somewhat religious about it

I asked once and didn't get a response for what I think was 3-5 days and asked again (it is a low frequency channel, but that gap seemed appropriate). I wasn't making a religious argument, literally just asking about the availability of images.

> Don't take it personally. If you want to use a tool with that plumbing then feel free to DIY. If you make it work well, perhaps publish your process and/or images and support it for others who need/want that support.

I mean Drew was pretty clear that I couldn't even ask questions related to either subject in that channel. I don't take it personally, but it certainly affected the way that I view the project and Drew as a human being.

Re:Codeberg a GitHub Alternative from Europe by js2 on Monday October 17, 2022 @06:39PM (#33240418)
Re:Codeberg a GitHub Alternative from Europe by sph on Monday October 17, 2022 @07:39PM (#33241044)
Pretty feeble argument. Basically it boils down to "if you use Docker you risk not learning how it works and hurting yourself." As I mention in the sibling comment, it would feel less patronising just saying out loud "we do not like containers, roll your own."
Re:Codeberg a GitHub Alternative from Europe by bayindirh on Tuesday October 18, 2022 @04:16AM (#33244420)
I don't think so.

I was researching Keycloak integration with Kubernetes (a project needed it at the office).

I installed it on bare metal, set-up its TLS certificates and enabled native HTTPS. While searching for integration I found a video. The person installed Keycloak Docker image, and dropped an HTTPS proxy container in front of it to enable TLS/HTTPS.

If this is not both bad practice and being misinformed about Keycloak in one step, I don't know what it is.

The person didn't learn how to use and administer Keycloak, didn't make good judgement calls about security and published bad information while doing that.

Docker is easy to abuse and creates people who think know stuff, but do not in reality.

Docker. Pull Responsibly (TM).

Re:Codeberg a GitHub Alternative from Europe by sph on Tuesday October 18, 2022 @05:05AM (#33244718)
Oh, so there's people that don't know how to use containers, so they're bad? What kind of patronising, nanny state kind of argument is that?

Listen, I understand not liking containers. That's fine. But just say so, or try to give more concrete arguments to the table than "I saw a guy in a video creating an insecure container. Thus Docker creates ignorance."

As if configuring servers by hand isn't prone to misconfiguration or bad security practices. Perhaps we have namespaces today because people have been creating insecure, unmaintainable pet systems since the stone age, yet it doesn't save you from hurting yourself if you don't know what you're doing.

Re:Codeberg a GitHub Alternative from Europe by bayindirh on Tuesday October 18, 2022 @05:16AM (#33244778)
> Oh, so there's people that don't know how to use containers, so they're bad? What kind of patronising, nanny state kind of argument is that?

You're building rest of your comment on this misinterpretation of my comment.

What I say is "Docker is easy, but it lowers the bar for making mistakes too much. Using Docker without enough information creates bigger problems, faster".

You can do a lot of mistakes, and fatal ones at that, while working on bare metal too. I'm managing systems for 15+ years, using Linux close to 20, and had my fair share on any abstraction level (metal, VM, container, etc.).

However, K8S and Docker is susceptible to create a whole set of problems, and more importantly without knowing it, until it's too late. VMs and bare metal fail relatively early and with more noise. If you do something wrong with your K8S deployment, you can't mend it, and need to re-deploy it.

I do not prefer Docker and K8S, and avoid the latter if I can, but I'm not an hard-line extremist against any of them. I also manage containers and a K8S cluster at work, too.

And no, I never patronize anyone. This is not my style. I just shared my experience, and told that "learning wrong things is easier with Docker", that's all.

I know excellent developers and sysadmins who do wonders with containers, too. Docker and K8S are sharp knives with no warnings on them. That's all.

Re:Codeberg a GitHub Alternative from Europe by sph on Tuesday October 18, 2022 @08:36AM (#33246235)
> Docker and K8S are sharp knives with no warnings on them.

And that's nothing wrong with that. You might also "hurt" yourself by installing software by hand.

Let's agree to disagree, this "it could be dangerous!" argument feels like doubling down on a weak position, but I honestly do not care about fighting someone over the internet about it. Your computer, your rules :-)

Re:Codeberg a GitHub Alternative from Europe by bayindirh on Tuesday October 18, 2022 @08:41AM (#33246286)
> And that's nothing wrong with that.

Yes, except poor documentation and lots of open secrets.

There is no need to fight. We're just discussing. We can do things differently and obtain the same brilliant or disastrous results regardless of the underlying abstraction layer/platform.

All approaches have advantages and disadvantages, so all takes are equally weak IMHO.

Have a nice day,

Cheers.

Re:Codeberg a GitHub Alternative from Europe by lapinot on Tuesday October 18, 2022 @05:25PM (#33254228)
Docker != containers. You're arguing as if the srht or generally the diy anti-kubernetes crowd was against containers. Or as if docker was the only mean of secure isolation. More likely than not you'll find them running bwrap, lxc, qemu, etc. You're missing your opponents here, it's very much the opposite of conservative sysadmins that went incompetent and don't understand the new tech. It's (imho) people that are fed up with the "click here to deploy a production server", the "infinite elastic scaling" and the fact that most of these false promises are hidden by bloated software. Nobody is saying that docker gets nothing right, just that most of the time others do more of the good and less of the bad.

> I saw a guy in a video creating an insecure container. Thus Docker creates ignorance

It's more than a guy. Once you see that kubernetes is corporate bloat you gotta ask for the responsability of the people making it. Yes it's creating people that don't understand how things are actually wired (and no, this is not a "natural" direction of history). It's making people dependent on complex stuff and it's actually hiding from mainstream knowledge the simple ways to do simple stuff. I recently had to help someone deploy stuff on an openshift hosting and i must say the experience is infuriating (not even talking about the runtime efficiency of managing the bazillion moving parts).

Re:Codeberg a GitHub Alternative from Europe by KronisLV on Tuesday October 18, 2022 @02:20PM (#33251697)
> I installed it on bare metal, set-up its TLS certificates and enabled native HTTPS. While searching for integration I found a video. The person installed Keycloak Docker image, and dropped an HTTPS proxy container in front of it to enable TLS/HTTPS.

> If this is not both bad practice and being misinformed about Keycloak in one step, I don't know what it is.

Would you mind sharing your argumentation about this, both in the context of Keycloak and in general?

In my eyes, enabling TLS on whatever application you want to run directly is almost always a bad choice, because you now need to deal with its unique implementation, as well as any vulnerabilities that the implementation could have. For example, even if all of your services run Java, you might find that a Spring application, a Spring Boot application, a Quarkus and a Vert.X application all have different ways of enabling it:

  Spring example: https://www.baeldung.com/spring-channel-security-https
  Spring Boot example: https://www.baeldung.com/spring-boot-https-self-signed-certificate
  Quarkus example: https://quarkus.io/guides/http-reference#ssl
  Vert.X example: https://github.com/eclipse-vertx/vert.x/blob/master/src/main/java/examples/EventBusExamples.java#L106 (couldn't even find docs)
And that's before you have parts of your stack running Node, Python, .NET, Ruby, PHP, Go or whatever else you might have to deal with. You can basically forget about automatically provisioning ACME certificates through Let's Encrypt, as well as being able to (easily) have all of your certificates in one place (at least for whatever that node needs), for easier renewals. This is especially noticeable when you want to serve dozens of different sites/applications from the same node.

In contrast, when you have a web server as your point of ingress, that then acts as a transparent reverse proxy in front of your applications:

  - it takes care of all of the certificates, in a common format, they're easy to renew or can be provisioned thanks to ACME
  - it can take care of other concerns, like path rewriting, HTTP to HTTPS redirects, rate limiting, additional caching or headers
  - your applications can talk to one another in the internal network through HTTP, whereas encryption there can be added transparently
  - with containers, this might be an overlay network where the clustering/networking solution takes care of internal certificates and rotates them often
So, how is that a bad choice? Some reasonable arguments that I can come up with are:

  - it's easier to screw things up and expose stuff directly (e.g. port mappings, instead of overlay networks)
  - one could feasibly argue that sometimes the application itself might want to look at the certificates and do something with them (e.g. expiry alerts)
  - one could also argue that reverse proxies won't necessarily be perfect and some software might not correctly deal with headers
Perhaps I'm missing something that's staring me in the face.
Re:Codeberg a GitHub Alternative from Europe by toastal on Monday October 17, 2022 @08:06PM (#33241299)
Speaking from the user side on CI usability, SourceHut, while not supporting a cache (which would be dope), has been pretty good with Nix and supports running NixOS unstable as an image for CI. This has been better for me than wasting steps building containers from Nix and then running the containers that some CIs require. I believe the SourceHut setup is in nixpkgs too to run yourself easily.
Re:Codeberg a GitHub Alternative from Europe by gavinray on Monday October 17, 2022 @11:31PM (#33242648)
Drew seemed irritated when I posted a Dockerfile for setting up the Hare language language compiler for development on the mailing list, trying to save other folks the effort.

https://gist.github.com/GavinRay97/e3c166c5ba24c2c1bc4a09d7b...

He said "Docker isn't a supported installation mechanism."

I wasn't aware of Drew's anti-docker stance, whoops.

Re:Codeberg a GitHub Alternative from Europe by ddevault on Tuesday October 18, 2022 @06:33AM (#33245286)
We're going to start looking into k8s and Docker soon as one of the candidates for infrastructure in our new datacenter rollout, but don't hold your breath. It will be a while before this bears any fruit and we may decide it's not worth it.
Re:Codeberg a GitHub Alternative from Europe by kodah on Tuesday October 18, 2022 @12:19PM (#33249790)
Orchestrators and runtimes should always be carefully chosen, if at all, so that's great. Sounds like you have some smart people working on it. My post was less about the tech and more around the culture that's been established at SourceHut with respect to those technologies. If I can't even join #sr.ht and ask about images or strategies others are using that's going to be an issue.
Re:Codeberg a GitHub Alternative from Europe by ddevault on Tuesday October 18, 2022 @12:30PM (#33249987)
#sr.ht is an on-topic channel for end-user support and development discussion. Since Docker/k8s has been rejected upstream, it's off-topic for #sr.ht. The channel needs to keep quiet and keep a high signal:noise ratio to make sure that users get attention when they need support. That said, you could discuss it on the off-topic channel, #sr.ht.watercooler, if you like.
Re:Codeberg a GitHub Alternative from Europe by throwup on Monday October 17, 2022 @06:03PM (#33240098)
Has ddevault ever commented on how much build minutes will cost out of alpha? From their pricing page it seems like a fixed monthly cost for unlimited minutes, which doesn't seem sustainable to me.
Re:Codeberg a GitHub Alternative from Europe by gbear605 on Monday October 17, 2022 @08:30PM (#33241492)
Right now it’s unlimited*, where the * means that you’re not allowed to abuse it by doing things like Bitcoin mining. So far the model seems to be financially sustainable (they release quarterly financial statements).
Re:Codeberg a GitHub Alternative from Europe by Blackthorn on Monday October 17, 2022 @01:49PM (#33237251)
I no longer trust bitbucket after they shut down their mercurial support. That was the thing that differentiated them from everyone else. Why even use them now?
Re:Codeberg a GitHub Alternative from Europe by NexRebular on Monday October 17, 2022 @05:40PM (#33239869)
I wonder if there even is public mercurial hosting available anymore. This git monoculture is starting to be a bit annoying.
Re:Codeberg a GitHub Alternative from Europe by Aeolun on Monday October 17, 2022 @08:25PM (#33241441)
For the longest time I just couldn’t see what the fuzz (about Git) was about. But after finally switching I don’t think I’d ever go back.
Re:Codeberg a GitHub Alternative from Europe by ColonelPhantom on Wednesday October 19, 2022 @11:18AM (#33263490)
What VCS were you coming from, and what makes Git so much nicer?

I believe Git and Mercurial are considered to be 'about as good' by most.

Re:Codeberg a GitHub Alternative from Europe by gbear605 on Monday October 17, 2022 @08:33PM (#33241512)
SourceHut offers mercurial hosting, though it’s entirely community maintained.
Re:Codeberg a GitHub Alternative from Europe by slondr on Monday October 17, 2022 @08:41PM (#33241570)
Sourcehut.
Re:Codeberg a GitHub Alternative from Europe by alwillis on Tuesday October 18, 2022 @12:33AM (#33243014)
Heptapod supports a Mercurial hosting service (free for OSS) that’s a fork of GitLab: https://heptapod.net/
Re:Codeberg a GitHub Alternative from Europe by Blackthorn on Tuesday October 18, 2022 @02:05AM (#33243522)
Really appreciate the link. Much prefer mercurial to git on my own stuff.
Re:Codeberg a GitHub Alternative from Europe by alwillis on Tuesday October 18, 2022 @10:04AM (#33247308)
Same.
Re:Codeberg a GitHub Alternative from Europe by StevePerkins on Monday October 17, 2022 @05:46PM (#33239937)
To be fair, hardly anyone ever used Bitbucket due to Mercurial support.

Some people probably used it because for awhile, pre-GitLab, it was the GitHub alternative with the most generous free tier for private repos.

However, the overwhelming majority of users probably use it because they're already in the Atlassian ecosystem due to JIRA.

Re:Codeberg a GitHub Alternative from Europe by DoctorDabadedoo on Monday October 17, 2022 @06:44PM (#33240474)
Bitbucket is like an ex girlfriend you don't quite recall why you broke up with, but afterwards every time you meet her and hear her voice it all comes back in a rush how disgusted she made you feel.
Re:Codeberg a GitHub Alternative from Europe by alwillis on Tuesday October 18, 2022 @12:25AM (#33242965)
Heptapod archived 250,000 Bitbucket Mercurial repos and runs fork of GitLab that supports Mercurial: https://octobus.net/blog/2020-04-23-heptapod-and-swh.html
Re:Codeberg a GitHub Alternative from Europe by JanMa on Monday October 17, 2022 @01:59PM (#33237386)
Keybase also has support for hosting Git repos: https://book.keybase.io/git
Re:Codeberg a GitHub Alternative from Europe by mdaniel on Monday October 17, 2022 @03:26PM (#33238372)
I'd exercise caution building on top of it since I don't think Zoom cares about Keybase and I was unable to find any server among their repositories (https://github.com/orgs/keybase/repositories) such that one could self-host after Zoom bores of running the Keybase infra
Re:Codeberg a GitHub Alternative from Europe by hk1337 on Monday October 17, 2022 @04:04PM (#33238835)
I used to use Keybase for my dotfiles repo but I thought Keybase was on their way out since being bought?
Re:Codeberg a GitHub Alternative from Europe by jcul on Tuesday October 18, 2022 @08:19AM (#33246106)
Which is a shame, assuming it's true. I thought keybase was really innovative in their use of modern cryptography.
Re:Codeberg a GitHub Alternative from Europe by medoc on Monday October 17, 2022 @02:13PM (#33237535)
There is also framagit: https://framagit.org/public/projects which is a Gitlab instance run by a French non-profit, Framasoft: https://framasoft.org/en/ I host my project there, no issues.
Re:Codeberg a GitHub Alternative from Europe by jszymborski on Monday October 17, 2022 @05:39PM (#33239864)
I have a lot of love for framasoft, but beware that they have limited resources and have in the past closed down or geofenced services I was relying on.

I think Codeberg's co-op style governance/funding makes a lot of sense w.r.t sustainability.

A reminder that Framasoft's a worthy cause to donate to if you are looking for causes to support!

Re:Codeberg a GitHub Alternative from Europe by dopidopHN on Tuesday October 18, 2022 @07:55AM (#33245913)
They have been around for a while at this point. 20+ years of good work.
Re:Codeberg a GitHub Alternative from Europe by sylware on Monday October 17, 2022 @02:25PM (#33237674)
Wait, most if not all are not noscript/basic (x)html friendly, what codeberg seems to be. Ok, github.com has most of its critical functions (microsoft has managed not to f*ck it up... yet) working with a noscript/basic (x)html browser, gitlab and bitbucket, not even possible to create an account, and if I recall properly, neither for sourcehut.

There are other git services which are noscript/basic (x)html friendly from the ground up, and EU based, but much less popular.

Re:Codeberg a GitHub Alternative from Europe by Munksgaard on Monday October 17, 2022 @02:55PM (#33238001)
I... don't think that's true of Sourcehut? Drew has certainly argued for the fact that websites should be usable without Javascript, so it would surprise me if Sourcehut didn't follow the same standards.
Re:Codeberg a GitHub Alternative from Europe by sylware on Monday October 17, 2022 @03:23PM (#33238326)
I should test, but isn't there a javascript only captcha at account creation?

A few years ago, captchas were long to go thru but at least without that horrible javascript.

Re:Codeberg a GitHub Alternative from Europe by gnramires on Monday October 17, 2022 @02:34PM (#33237787)
Please keep in mind codeberg runs on donations (like mine :) ). If you join and have resources, consider donating (they're on LiberaPay). Their finances seem healthy and sustainable for now.

https://liberapay.com/codeberg/

Re:Codeberg a GitHub Alternative from Europe by Aeolun on Monday October 17, 2022 @08:27PM (#33241463)
$400/month hardly seems sustainable. That pays for hosting and not much else.
Re:Codeberg a GitHub Alternative from Europe by DJHenk on Tuesday October 18, 2022 @01:16AM (#33243229)
You can also become a supporting member and donate directly, which is what I did: https://join.codeberg.org/
Re:Codeberg a GitHub Alternative from Europe by melony on Monday October 17, 2022 @02:35PM (#33237793)
Re:Codeberg a GitHub Alternative from Europe by gdrift on Monday October 17, 2022 @06:13PM (#33240195)
Re:Codeberg a GitHub Alternative from Europe by barbariangrunge on Monday October 17, 2022 @02:54PM (#33237994)
Sourcehut was nice and minimal last time I used it. Worth checking out. Also: the creator has a great blog
Re:Codeberg a GitHub Alternative from Europe by e12e on Monday October 17, 2022 @02:55PM (#33238015)
> Souceforge also has a proprietary free-to-use for open source Git hosting service

It's not proprietary?

https://sourceforge.net/create/

> And, as if all of that wasn’t enough, the SourceForge platform runs on Apache Allura which itself is Open Source!

https://allura.apache.org/

Re:Codeberg a GitHub Alternative from Europe by beanaroo on Monday October 17, 2022 @04:40PM (#33239247)
Also proprietary and relatively new on the scene:

https://www.jetbrains.com/space/

Re:Codeberg a GitHub Alternative from Europe by ChristianGeek on Monday October 17, 2022 @05:51PM (#33239997)
Has anyone tried this yet? It looks promising, especially with JetBrains behind it.
Re:Codeberg a GitHub Alternative from Europe by psychoslave on Monday October 17, 2022 @04:58PM (#33239437)
Re:Codeberg a GitHub Alternative from Europe by User23 on Monday October 17, 2022 @06:44PM (#33240466)
Let's not forget https://savannah.gnu.org/.
Re:Codeberg a GitHub Alternative from Europe by throwaway0x7E6 on Monday October 17, 2022 @11:37PM (#33242678)
Github and Bitbucket will shut you down on a whim of twitter sharia police

https://knowyourmeme.com/memes/events/c-plus-equality-c

I suggest to use and support the alternative that explicitly promises not to engage in censorship - gitgud.io

Re:Codeberg a GitHub Alternative from Europe by slow_typist on Tuesday October 18, 2022 @03:00AM (#33243913)
gitlab and github both provide a program that runs on your raspi and executes the ci pipeline. Search for ‘runner‘. As a solo developer, you can even install the runner on your laptop. It will only be needed while you’re connected to the network anyways.
Re:Codeberg a GitHub Alternative from Europe by hypnotortoise on Tuesday October 18, 2022 @03:42AM (#33244187)
You forgot the most important one for the future https://radicle.xyz/
Re:Codeberg a GitHub Alternative from Europe by alexvoda on Wednesday October 19, 2022 @07:40AM (#33260674)
Didn't Sourceforge open source their forge server software. IIRC it is an Apache project now.