Setting up a local package repository

Installing and configuring Nexus 3 as a local package repository

If you have a large number of machines locally, or use Docker builds a lot then running a local package repository can help in reducing both the download times for packages and reduce the bandwidth used both on your internet connection and at the remote repositories.

In this guide I will show how to setup Sonatype Nexus Repository OSS in a docker container and use it as a target for all of your Linux boxes so that when they perform an update they use a local cached version of packages, leaving the retrieval & updating of the cache to Nexus.


Installation

How to install Nexus into docker

Configure Repository mirror

Configure repository mirrors

Using Repository mirrors

How to use the repository mirrors