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:
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 |
.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]