gerrit lfs support external s3 endpoint

44 views
Skip to first unread message

黄毅

unread,
Apr 21, 2020, 11:08:32 PM4/21/20
to Repo and Gerrit Discussion
Hi, All,

we are setup the gerrit lfs to support big file. we are planning to use some external s3 endpoint.
but we found the gerrit lfs plugin only support amazon s3, 

do we have some way to fix or workaround this issue?

best
peter

anish anil

unread,
Apr 22, 2020, 2:55:13 AM4/22/20
to Repo and Gerrit Discussion
We are using Artifactory n it works well. The steps remain the same as AWS. So if you let us know what is the exact backend you are using or planning then we may be able to help you better

黄毅

unread,
Apr 22, 2020, 3:30:20 AM4/22/20
to Repo and Gerrit Discussion
hi, anish, 

we don't have artifactory service now.

but we use IBM cloud storage service.(use s3 protocol)
and we want to mirror some gitlab repository(contains lfs part) to our gerrit server.
so we need to change the hard code aws url in code.

best
peter

anish anil

unread,
Apr 22, 2020, 4:06:26 AM4/22/20
to Repo and Gerrit Discussion
Hello Peter,

These are our settings on the server lfs.config file

[lfs]
           fetchexclude = *

On IBM CLoud you will have to use the API and key to autheticate and push the Artifact
NOTE: It uses http/https so ur API Key should match the user in IBM CLoud to get this working.

We tested on Artifactory and it worked.

Thank you,
Ansih

anish anil

unread,
Apr 22, 2020, 4:12:05 AM4/22/20
to Repo and Gerrit Discussion
I found the following link as i had earlier worked with S3 storage for IBM and you will need that put API to do the push.


Basically, you will need to do a manual push and use the same creds n login details and bucket for each project

Thank you,
Anish

On Wednesday, 22 April 2020 08:38:32 UTC+5:30, 黄毅 wrote:

黄毅

unread,
Apr 22, 2020, 5:04:32 AM4/22/20
to Repo and Gerrit Discussion
hi, anish,

thanks for your reply, 
but i look at https://gerrit.googlesource.com/plugins/lfs/+show/master/src/main/resources/Documentation/config.md   , the [lfs] url is config in the git local side. not server side.
is it correct?
if it is in the git local side, we cannot use it , because the repo is mirror from gitlab, we cannot add a extra lfs.config there.

best
Peter

David Pursehouse

unread,
Apr 22, 2020, 7:34:13 AM4/22/20
to 黄毅, Repo and Gerrit Discussion
On Wed, Apr 22, 2020 at 6:04 PM 黄毅 <huan...@gmail.com> wrote:
hi, anish,

thanks for your reply, 
but i look at https://gerrit.googlesource.com/plugins/lfs/+show/master/src/main/resources/Documentation/config.md   , the [lfs] url is config in the git local side. not server side.
is it correct?
if it is in the git local side, we cannot use it , because the repo is mirror from gitlab, we cannot add a extra lfs.config there.

AFAIK the git config is not part of the repository that gets mirrored; you can change its contents locally on your mirrored repo.
 

best
Peter

On Wednesday, April 22, 2020 at 4:12:05 PM UTC+8, anish anil wrote:
I found the following link as i had earlier worked with S3 storage for IBM and you will need that put API to do the push.


Basically, you will need to do a manual push and use the same creds n login details and bucket for each project

Thank you,
Anish

On Wednesday, 22 April 2020 08:38:32 UTC+5:30, 黄毅 wrote:
Hi, All,

we are setup the gerrit lfs to support big file. we are planning to use some external s3 endpoint.
but we found the gerrit lfs plugin only support amazon s3, 

do we have some way to fix or workaround this issue?

best
peter

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/27bc14ec-8640-4057-928b-f878f3fecf6b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages