Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto mirroring Nexus Proxy Repository

Tags:

nexus

Currently, we have a nexus hosted-repository remotely (in a different geographic location). We have a local-proxy-repository locally to the hosted-repository.

Whenever there are new versions of a few files added to remote-hosted-repository, the first request for the newly added file from the build system is downloading it to local-proxy-repository.

The problem I have now is that some of the files being added are really huge (say around 400 MB). Therefore the first build consumes lot of time to finish.

Is there a way we can poll on remote-hosted-repository and auto-mirror it ?

like image 384
Chris Avatar asked Jul 25 '12 04:07

Chris


1 Answers

Nexus Professional 2.+ supports this as experimental feature of the Smart Proxy feature set. It is an experimental feature that is off by default, but should work just fine. Give it a go!

To turn it on go to "administration/capabilities". Check "show advanced" and then select the "smart proxy: subscribe" and enable preemptive fetch.

Update: as of Nexus 2.3 this is no longer deemed experimental and you can configure if for each repository that you proxy off.

like image 158
Manfred Moser Avatar answered Oct 22 '22 04:10

Manfred Moser