Skip to content
← All work
Developer platformOwnedKnovos

One artefact service for every build and every developer machine

My idea and my build. Sonatype Nexus behind nginx with separate endpoints for NuGet and Docker caching and our own private registry, plus a shared SMB package path so developer machines stopped each keeping their own copy of every package.

Service
Sonatype Nexus behind nginx
Formats
NuGet, Docker, private registry
Developer machines
Developer machines: withheld under NDA
Disk saved per machine
Not measured

Employer work under NDA. Architecture and reasoning are described; client names, volumes and internals are withheld.

Context

Every developer machine and build agent pulled NuGet packages and container images straight from the internet, and every machine kept its own full copy of the package cache.

The problem

The same gigabytes were downloaded and stored over and over. Builds depended on public registries being up and fast, and there was nowhere sensible to keep internal images.

What made it hard

  • Developers restore NuGet packages all day. Anything that changed their workflow much would be routed around.
  • Docker Hub rate-limits anonymous pulls, and a whole office shares one address.
  • Internal images had to stay inside the network.

Options considered

  • Leave clients on the public registries

    Free until rate limits or an outage stop a release.

  • A hosted artefact service

    Rejected. Another subscription, and internal images would leave the network.

  • ChosenSelf-hosted Nexus behind nginx, with a shared package path

    One service covers both formats and the private registry, and clients only change a source URL.

The decision

Nexus runs proxy repositories for NuGet and Docker and a hosted one for internal images. nginx fronts it with TLS and a separate endpoint per format. Developer machines point their package folder at a shared SMB path instead of each holding a copy.

CLIENTSFRONTNEXUSUPSTREAMdeveloper machinesnuget · dockerbuild agentsrestore · pull · pushshared SMB pathone package foldernginxTLS · per-endpointnuget proxycachedocker proxycacheprivate registryinternal imagesnuget.orgDocker Hubdashed = only on a cache miss.an upstream outage stops new versions, not builds
Fig. One artefact service in front of the public registries. Packages are fetched from the internet once, then served locally to every build and every developer.

My part

All of it: the idea, the design, the build and the rollout to developers.

Stack

  • Sonatype Nexus
  • nginx
  • NuGet
  • Docker registry
  • SMB
  • Windows

Result

  • Packages are fetched from the internet once and served locally after that.
  • An upstream outage stops new versions arriving, not builds.
  • Not measured: disk saved per machine and build time before and after. The saving is real but was never recorded, so no number is claimed.

What I would change

Measure the before state first. The saving is real, and without a baseline it is now hard to put a number on.