Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] LFS Servlet
  • From: Max Gärber <max@xxxxxxxxxxx>
  • Date: Fri, 10 Aug 2018 10:53:12 +0200
  • Autocrypt: addr=max@xxxxxxxxxxx; keydata= xsBNBFtQWvwBCACf2mUZNBAaBhthIGJ9qtiCBRUtjk9guo6cMT6xuRN6dnzzG5gzmlCxMCAN LJ4MTcxtoYyYvDXMAfmZDhamEru4LE2LSoMlr5swU4OKOx0UVhBY+VqhEAjwz5+dzIrKlvrp mJ/4Hf5dCv9F1TOorDq4lecDdoHMgbmL6uZVYQsUDrublV/8mKLt6aPneCjQ9r3qwfh6Byf2 DNkLPeHDv5Dm4DUZ68Y/p5FJDboGvkxVlquStD03TREpHxemppjsp4m+SAcFe+0FoTMbVGQg vI3aEF5jesFp+Of2ezVgDwwZGPgrAaSgyqAGhHJEvwQ+kkhVXo1dofVwGWq6+sLyXahVABEB AAHNIE1heCBHw6RyYmVyIDxnYWVyYmVyQGF4eGVwdGEuZGU+wsCUBBMBCAA+FiEEIOGd2dV6 3CbhLlSIR3dmnBxEeykFAltQWv4CGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AA CgkQR3dmnBxEeyk0KQf/cC/AbuT3wHylCmGl2gLFUFRyznOG0d/X1DHFzSCIFM68Vt7rt2Pr illfifuMeLc1/bCO11Ny+Dv7cyBlG+0jUsGK4G5svMfKP86ayDCd22M61oVsWTEowQOzgu2K rJtEHKwB7xSu9OblkUs587Jljp1AN+t0p81a4zM9aELTeTPEocENIwWultf+RN0hOglAw1Om NB/BCYurphSMKMmt4Ymrd0M2MTT8gh+d1t47/bgsJTLxniMjQi/uIxfRkisLF+oFmPyOayVg ROXL+crcl9+6FN9arbmGqCzWTIF0QDTq7qN/uQOqcIOIQ8ZzBZHnAPYKTvr2dLy2ElUeJD2V xM7ATQRbUFr8AQgA0D8zZ2/tN5ZvK0WjJKgRYtbHBy15wQlzDexMXAKDWduq3Mb5JVOBPyzy D5EKk3vzZ7zP6p+2nY2LCfGuSUmYJn84NjcS4NzSFJ1aO/bHdCHKOftFVLT6MJOxtSBkbX92 dfGi0Eu879vD4HlGLlqZeeiHNve1IuoDsAcMiSCvbM1lHl+A5iimwc56tcl+ZSTb4oiku6gt 5/DKjQfhdLhOsxTY0cXbhZmeFpeq5/tvLaLrhNcsoCsjShMyQOlD5jPgkYTiRQnVOGi+QZEA 4IIgJb+kOZkS8Jle6D7fqFyhGA3f5lwpNn+DI2JBylxN2TOOlGaY87omML6tZ40TORioVQAR AQABwsB8BBgBCAAmFiEEIOGd2dV63CbhLlSIR3dmnBxEeykFAltQWvwCGwwFCQHhM4AACgkQ R3dmnBxEeykQKAgAllaBjzuilS9mX9Ze09PVSucQ6nuhXpnlV96P6wCyHGA1EIL7KtEHmU8y 9MMCreQ6Eg6poifspnQzZBiIikLeFTVBqU1ay/fu1YocU4QJbe7e8PY/etBRU+Yx3aNmKw4b sFwXkRVz9xaemGQHYN0zdUhR9PdUcus15iLqv90oG9L+LzCpNNG/z6W6W1RAQoHb4giM2kmB tnOo2D2zbAIZ+riT9rUYDVUFsguixoJEZTI6sM4+OPQrvjv2UkiSIRRRcUc7xrHAUmsj9G+D 6LDceeNem36Hq5AqAqtXgtUTZqQ3wIiUMA0e2GHUrAaeGVFdNP1GjRGT5csGKMc7f9YTXA==
  • Delivered-to: jgit-dev@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/jgit-dev>
  • List-help: <mailto:jgit-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/jgit-dev>, <mailto:jgit-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/jgit-dev>, <mailto:jgit-dev-request@eclipse.org?subject=unsubscribe>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Thanks Matthias!

Especially for pointing out the Gerrit sources, they are another good starting point.


Br,

Max


Am 09.08.2018 um 17:37 schrieb Matthias Sohn:
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