自动镜像Nexus代理存储库 [英] Auto mirroring Nexus Proxy Repository

查看:98
本文介绍了自动镜像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.

我现在遇到的问题是,要添加的某些文件确实非常大(例如大约400 MB).因此,第一次构建会花费大量时间来完成.

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 ?

推荐答案

Nexus Professional 2. +支持将此作为Smart Proxy功能集的实验性功能.这是一项实验性功能,默认情况下处于关闭状态,但应该可以正常工作.搏一搏!

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.

更新:从Nexus 2.3开始,这已不再是实验性的,您可以为代理配置的每个存储库配置是否.

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

这篇关于自动镜像Nexus代理存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆