Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] LFS Servlet

On Thu, Aug 9, 2018 at 2:42 PM Max Gärber <max@xxxxxxxxxxx> wrote:

Hi everybody,

I've noticed the recent progress in the LFS in the codebase and wanted to test the LFS Servlet as a standalone web app.

The best I could find so far is the LfsServerTest setup [1].

Does anybody have an example of a more complete web app?

Br,

Max


[1] https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java#L120


there is a command in the jgit command line implementing a lfs test server for playground use similar to the lfs-test-server [2].
It allows to store lfs objects in the filesystem or using S3. It's not meant for productive use. 
You can download jgit command line from [3] or from maven central and run its online help to find out how to use it:

$ chmod +x jgit
$ ./jgit debug-lfs-store -h

jgit debug-lfs-store [DIRECTORY] [--bucket (-b) BUCKET] [--expire (-e) SECONDS] [--help (-h)] [--no-ssl-verify] [--port (-p) PORT] [--region (-r) REGION] [--storage-class (-c) [REDUCED_REDUNDANCY | STANDARD]] [--store [FS | S3]] [--store-url (-u) URL]

 DIRECTORY                              : Directory to store large objects
 --bucket (-b) BUCKET                   : S3 bucket name
 --expire (-e) SECONDS                  : Authorization validity in seconds,
                                          default 60 sec (default: 600)
 --help (-h)                            : display this help text (default: true)
 --no-ssl-verify                        : Skip verification of Amazon server
                                          certificate and hostname (default:
                                          false)
 --port (-p) PORT                       : Server http port (default: 0)
 --region (-r) REGION                   : S3 region (us-east-1 | us-west-1 |
                                          us-west-2 | eu-west-1 |eu-central-1 |
                                          ap-southeast-1 | ap- southeast-2 |
                                          ap-northeast-1 |ap-northeast-2 |
                                          sa-east-1), see http://docs.aws.amazon
                                          .com/general/latest/gr/rande.html#s3_r
                                          egion
 --storage-class (-c) [REDUCED_REDUNDAN : S3 storage class (REDUCED_REDUNDANCY
 CY | STANDARD]                           | STANDARD), default REDUCED_REDUNDANC
                                          Y (default: REDUCED_REDUNDANCY)
 --store [FS | S3]                      : Store (fs | s3), store lfs objects in
                                          file system or Amazon S3
 --store-url (-u) URL                   : URL of the LFS store

Find the implementation class here [4].

Gerrit Code Review has a plugin using the JGit LFS implementation [5]

[5] https://gerrit.googlesource.com/plugins/lfs/

-Matthias


Back to the top