cdxgen icon indicating copy to clipboard operation
cdxgen copied to clipboard

[infra] npmjs mirror

Open prabhu opened this issue 8 months ago • 7 comments

Let's think about setting up an npmjs mirror.

prabhu avatar Jun 12 '25 18:06 prabhu

Easy, we just need a server to host either Sonatype Nexus or JFrog Artifactory. I have experience with the first, but also wouldn't mind learning the latter... 😉

malice00 avatar Jun 18 '25 11:06 malice00

We could actually use either for even more mirroring/caching like eg docker or even some OS-packages!

malice00 avatar Jun 18 '25 11:06 malice00

nice! do they work on macos arm64? or need another mini pc?

prabhu avatar Jun 18 '25 12:06 prabhu

I don't see why not, but let me do a quick POC on my machine.

Do we want to set this up only for the hosted servers so they have performance gains, or are they not in the same network?

malice00 avatar Jun 19 '25 08:06 malice00

Will try and get thunderbolt bridge working with our mac minis, so we can keep the registry private.

prabhu avatar Jun 21 '25 10:06 prabhu

OK, but that would mean we only use it for hosted builds? If it works, I would like to use it for caching Docker-images and other stuff too -- this would mean some more independence from eg unstable Suse dependencies! But we might have to move some more builds to the hosted servers then. 🤔 But we can check that when we have it up and running.

What's the status on the bridge?

malice00 avatar Jun 22 '25 21:06 malice00

I like your thinking. Yes, we can start with caching in the hosted agents first. Re the bridge, I have the TB5 cable. Need to arrange a physical visit to connect the minis together. Note that they are already on the same network and can be referred with their tailscale names, although with the bridge there could be performance improvements.

prabhu avatar Jun 23 '25 06:06 prabhu