Sonatype Nexus: How to use Amazon S3 as a storage

2020-08-11 11:30发布

问题:

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.

回答1:

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.



回答2:

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.



回答3:

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