在本地网络中使用 Sonatype nexus

发布于 2024-08-11 10:25:04 字数 1435 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

伤感在游骋 2024-08-18 10:25:04

这有效吗?是否有关于如何在私人服务器上设置“中央”之类的内容的文档,是否有同步所选工件的机制?

好吧,您可以成为中央的镜像,但是,获取约 10 GB 的工件有什么意义?您不需要所有这些,通常的建议是使用存储库管理器。

实际上我最初的想法是:

  1. 使用连接到外部互联网的 Nexus 来查看
  2. 此 Nexus 的内容到 DVD 的 rsync 内容。
  3. 通过 DVD 将内容复制到 SEE 的 Nexus。
  4. 定期重复。

我发现这个解决方案很丑陋,但是现在我们对您的情况有了更多详细信息,它可能是可以接受的。

Would it work? Is there documentation available on how to setup something like 'central' on a private server, is there a mechanism to synchronize selected artifacts?

Well, you could become a mirror of central but, what's the point of grabbing ~10 GB of artifacts? You won't need all of them and the usual recommendation is to use a repository manager.

Actually my initial thoughts was:

  1. Use a Nexus connected to the internet outside the SEE
  2. rsync the content of this Nexus to a DVD.
  3. Copy the content to the Nexus of the SEE via a DVD.
  4. Repeat periodically.

I found this solution ugly but, now that we have more details on your situation, it might be an acceptable.

有木有妳兜一样 2024-08-18 10:25:04

我曾经在一个网络环境中工作,其中网络的一部分无法访问互联网或任何其他网络。每当我们需要更新该网络内的软件时,我们都会执行以下操作:

  1. 将更新的软件上传到“安全”主机(Step Stone)
  2. 从网络断开 Step Stone
  3. 连接 Step Stone 到安全网络
  4. 将更新的软件推送到存储库
  5. 从安全网络断开 Step Stone

我们通过自动配置交换机以适当地连接和断开网络来完全自动化此过程(因此始终存在物理连接,但没有可用的 IP 连接)。也许你可以做类似的事情 - 这仅取决于“断开连接”定义的灵活性;)

I've once worked in a network environment where a portion of a network wouldn't have access to the internet or any other net. Whenever we needed to update software within this network, we did the following:

  1. upload updated software to a "secure" host (step stone)
  2. disconnect step stone from net
  3. connect step stone to secure net
  4. push updated software to repository
  5. disconnect step stone from secure net

We fully automated this process by automatically configuring a switch to connect and disconnect networks appropriately (so there was a physical connection at all times but no usable IP connection). Maybe you could do something similar - it just depends on the flexibility of the definition of "disconnected" ;)

怼怹恏 2024-08-18 10:25:04

我在我的环境中遇到了类似的问题。

通常我们托管 Nexus 的服务器将无法访问互联网。不过,我会见了运营团队并向他们解释说,允许 Nexus 自动从 Internet 下载工件对我们来说是一个巨大的生产力提升。

一旦他们了解了我们的需求,运维人员就允许服务器访问非常严格的互联网 IP 白名单,例如中央 Maven 存储库。因此,当外部存储库 IP 地址发生变化时,我们仍然需要通过操作来添加新存储库或执行白名单修复。但总的来说,我们认为这是安全性和生产力之间的最佳折衷方案,并且它对我们有用。

一旦您向利益相关者重申这样做将如何提高您的工作效率并最终节省每个人的时间,看看您的利益相关者是否会选择以严格限制的白名单方式将您的网络连接到互联网。

I faced a similar issue in my environment.

Ordinarily our server hosting Nexus would not be able to access the Internet. However, I met with the operations team and explained to them that allowing Nexus to automatically download artifacts from the Internet is a huge productivity win for us.

Once they understood our needs, ops allowed the server to access a very strict whitelist of Internet IPs such as the central Maven repository. So we still have to go through ops to add new repositories or perform whitelist fixes when outside repository IP addresses change. But overall we felt it was the best compromise between security and productivity and it works for us.

See if your stakeholders will go for connecting your network to the Internet in a highly restricted whitelist-only manner once you reiterate to them how doing so will make you more productive and ultimately save everybody time.

横笛休吹塞上声 2024-08-18 10:25:04

Nexus Pro 中的采购功能正是为了处理这种用例而设计的。

什么是采购?

采购套件用户指南

The Procurement features in Nexus Pro were designed exactly to handle this use case.

What is Procurement?

Procurement Suite User guide

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文