将一个工厂连接到另一个工厂 [英] Connect one Artifactory to another Artifactory

查看:143
本文介绍了将一个工厂连接到另一个工厂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的设置包括一家全公司范围内的Artifactory,该工厂拥有内部制造的工件以及外出并获取可公开获得的工件.我正在尝试在我们的位置建立本地Artifactory,以便通过常规互联网获取公开可用的人工制品,但会为公司内部的人工制品连接到公司范围内的Artifactory.这可能吗?

Our setup includes a company wide Artifactory that holds in-house-built artifacts as well as goes out and fetches publicly available artifacts. I’m trying to setup a local Artifactory at our location that would fetch publicly available artifacts through the regular internet, but would connect to the company wide Artifactory for our in-house-built artifacts. Is this possible?

在我的本地Artifactory设置中,我将公司范围内的Artifactory URL用作远程存储库.我可以单击测试"按钮,它告诉我它已成功连接.但是,当我去下载工件时,它不起作用.我想说的是,可以通过我的本地Artifactory来获取公开可用的工件,因此至少可以进入jcenter.bintray.

In my local Artifactory setup, I put the company wide Artifactory URL as a Remote Repository. I can hit the Test button and it tells me that it successfully connected. However, when I go to download an artifact it does not work. I would like to say that publicly available artifacts can be fetched through my local Artifactory, so at least I can get to jcenter.bintray.

一个工厂可以连接到另一个工厂吗?如果是,是否有办法测试此连接是否有效

Can one Artifactory be connected to another Artifactory? If yes, is there a way to test if this connection works

我认为我们不会使用公司范围内Artifactory的所有内容,因此我不想导出并导入到本地或进行复制.我希望我们可以按需提供.这可能吗?

I don’t think we would be using all the contents of the company wide Artifactory, so I don’t want to do an export and import to the local or do replication. I would prefer if we could fetch on demand. Is this possible?

感谢 @DarthFennec 将我指向

Thanks to @DarthFennec pointing me to Smart Remote Repositories I have solved my problem. To others who have the same problem

  • 请按照前面提到的页面上的步骤设置智能远程存储库.在我的情况下,Artifactory并未检测到遥控器是Artifactory的另一个实例,也没有给我设置任何选项,但是无论如何我对这些都不感兴趣.
  • 注意,您始终可以单击 Test 按钮,以确保与远程存储库的连接正常.
  • 接下来,转到管理->虚拟存储库,选择您的存储库密钥,然后从可用存储库中选择您的智能存储库 ,以便将其移至选定的存储库.点击保存并保存在底部完成,您应该一切顺利.
  • Please follow the steps mentioned on the previously mentioned page to set up the Smart Remote Repository. In my case Artifactory did not detect that the remote was another instance of Artifactory and did not give me any options to set, but I was not interested in these anyway.
  • Note You can always click the Test button to make sure that your connection to the Remote Repository works.
  • Next, go to the Admin -> Virtual Repositories select your Repository Key and select your Smart Repository from the Available Repositories so that it moves into the Selected Repositories. Click Save & Finish at the bottom and you should be good to go.

推荐答案

我不确定您最终遇到的问题是什么,但是如果您要从一个Artifactory存储库中远程转移另一个存储库,它应该是一个智能远程存储库.这是Artifactory检测到远程指向另一个Artifactory的时候,它启用了许多额外的功能,例如下载统计信息,属性复制和远程浏览.

I'm not sure exactly what your problem ended up being, but if you want to remote one Artifactory repository from another, it should be a smart remote repository. This is when Artifactory detects that a remote is pointing at another Artifactory, and it enables a number of extra features, like download statistics, property replication, and remote browsing.

配置智能远程存储库时要记住的重要事项是,根据软件包类型,您可能需要将远程指向<artifactory>/api/<type>/<repo>,而不仅仅是<artifactory>/<repo>. Bower,Chef,CocoaPods,Docker,Go,NuGet,Npm,Php Composer,Puppet,Pypi,RubyGems和Vagrant存储库就是这种情况.其他存储库类型应使用标准的<artifactory>/<repo> URL.

An important thing to keep in mind when configuring a smart remote repository is that depending on the package type, you might need to point the remote at <artifactory>/api/<type>/<repo>, rather than just <artifactory>/<repo>. This is the case for Bower, Chef, CocoaPods, Docker, Go, NuGet, Npm, Php Composer, Puppet, Pypi, RubyGems, and Vagrant repositories. Other repository types should use the standard <artifactory>/<repo> URL.

这篇关于将一个工厂连接到另一个工厂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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