Proxy repositories for Maven, npm, Python, Docker, Go and yum

A proxy repository gives your builds one CloudRepo address for a public repository such as Maven Central, npm, PyPI or Docker Hub. The first request for a file fetches it from the upstream, and CloudRepo stores a copy in your repository. It does not copy the whole upstream, only the files your builds ask for.

Every feature on every plan, from $99/month billed annually.

14 days free. No credit card required.

Serving developers since 2016 Founder-run, no venture capital

~/.m2/settings.xml
<settings>
  <servers>
    <server>
      <id>cloudrepo</id>
      <username>you@example.com</username>
      <password>${env.CLOUDREPO_TOKEN}</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>cloudrepo</id>
      <mirrorOf>central</mirrorOf>
      <url>https://your-org.mycloudrepo.io/repositories/maven-central</url>
    </mirror>
  </mirrors>
</settings>

How a proxy repository works

What CloudRepo stores, what it asks the upstream again, and what a proxy does not do.

  • One format per proxy Maven, npm, Python and Docker, plus Go and yum in early access. A proxy repository has one format and pulls from one upstream, chosen from a fixed list.
  • Fetched on the first request The first request for a file fetches it from the upstream repository, and CloudRepo stores a copy in your repository.
  • Served from the stored copy Later requests for a file that CloudRepo already stores are answered from that copy: a jar, an npm tarball, a Python wheel or a Docker image layer.
  • Package lists are asked again The documents that list what exists are not kept for good. A Maven proxy treats a stored maven-metadata.xml as current for 60 minutes. An npm package document and a Python index page come from the upstream on each request. A Docker tag is checked again once its stored record is stale.
  • Delete a copy, fetch it again Delete a stored file like any other artifact, and the next request fetches it from the upstream again.
  • Pull only Uploading to a proxy repository is not permitted, from a build tool or from the Admin Portal. Push your own artifacts to a local repository.

Setup guide

Replace your-org and the repository names with your own.

Create a proxy repository

In the admin portal, open Create Repository, choose a format, set Kind to Proxy and pick the Upstream. Maven Central is already chosen for Maven.

Create Repository form
Format: Maven
Kind: Proxy
Upstream: Maven Central
Name: maven-central

Point Maven at it

In ~/.m2/settings.xml, a mirror of central sends Maven's requests for Central to your proxy. The server with the same id gives Maven your repository token.

~/.m2/settings.xml
<settings>
  <servers>
    <server>
      <id>cloudrepo</id>
      <username>you@example.com</username>
      <password>${env.CLOUDREPO_TOKEN}</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>cloudrepo</id>
      <mirrorOf>central</mirrorOf>
      <url>https://your-org.mycloudrepo.io/repositories/maven-central</url>
    </mirror>
  </mirrors>
</settings>

Or pull a Docker image through Docker Hub

Create a Docker proxy of Docker Hub named docker-hub, log in to your organization's host, then pull. The reference is the host, the literal repositories/ segment, the proxy's ID, then the image and tag.

Terminal
echo "$CLOUDREPO_TOKEN" | docker login your-org.mycloudrepo.io \
  --username you@example.com \
  --password-stdin

docker pull your-org.mycloudrepo.io/repositories/docker-hub/alpine:latest

Pick the upstream from a fixed list

A proxy repository pulls from one upstream on the list for its format. Need another? Tell us. We add what customers ask for, fast.

  • Maven Maven Central (repo.maven.apache.org/maven2), Google Maven, Gradle Plugins, Clojars, Confluent, Atlassian, Spring and others. Maven guide
  • npm npmjs.com (registry.npmjs.com, the default), npmjs.org, GitHub Packages and jsDelivr. npm guide
  • Python (PyPI) PyPI (pypi.org). Python guide
  • Docker Docker Hub (registry-1.docker.io), GitHub Container Registry, AWS ECR Public, Quay.io and the Microsoft Container Registry. Proxy Docker Hub

A proxy repository is read like any other repository of its format. The Maven, npm, Python and Docker guides show each client, and the proxy repositories guide has the rest.

Every plan includes human support and SSO. See pricing

Try a proxy repository

14 days free. No credit card required.

Starting at $99/month billed annually.

Chris Shellenbarger, founder of CloudRepo

Founder-run since 2016, with no venture capital. A real person answers within one business day. Usually it's me.

Chris, founder of CloudRepo