Sonatype Nexus: How to use Amazon S3 as a storage

2020-08-11 10:51发布

I've got a task to examine how to make our internal Nexus installation (installed on CentOs/RHEL) to store artifacts in Amazon S3 cloud storage (or any other cheap cloud storage).

So far, I had found only one solution - mount s3 as a file system, f.e. using s3fs. But I've met few problems using s3fs (beyond the scope of this topic).

Maybe someone already succeeded in the search of the solution for similar task, and could share the knowledge? Or maybe anyone had better ideas?

Thanks in advance.

3条回答
萌系小妹纸
2楼-- · 2020-08-11 11:36

Edit: Since version 3.12, S3 blobstore is included in nexus.

Sonatype has an open source plugin that does that:

https://github.com/sonatype/nexus-blobstore-s3

you compile it, put it on the nexus deploy directory, setup your S3 account and you're good to test it.

查看更多
欢心
3楼-- · 2020-08-11 11:36

Nexus Sonatype does not support the use of S3 as it's filesystem store.

Why not use Nexus to manage your master repository and use a tool like s3sync to mirror the repository file contents into S3? Would be a useful way to provide versioned releases to customers.

查看更多
老娘就宠你
4楼-- · 2020-08-11 11:39

Since version 3.12, Nexus natively supports S3 blob store: https://blog.sonatype.com/nexus-repository-3.12-support-for-s3-blob-stores

查看更多
登录 后发表回答