Simple Python server to serve a read only HTTP mirror of git repositories that use Large File Storage (LFS)
Project description
git-lfs-http-mirror
Simple Python server to serve a read only HTTP mirror of git repositories that use Large File Storage (LFS)
Designed to sit in front of another HTTP server that serves git repositories using the so-called dumb git protocol, extending it with the capability to serve LFS files.
Installation
pip install git-lfs-http-mirror
Usage
Configuration is by environment variables
UPSTREAM_ROOT='https://my-bucket.s3.eu-west-2.amazonaws.com/a-folder' \
LOG_LEVEL=INFO \
PORT=8888 \
python -m git_lfs_http_mirror
The server configued as UPSTREAM_ROOT
should be a static server, serving copies of git repositories. Each copy can be created using:
git clone --bare https://server.test/my-repo
cd my-repo.git
git lfs fetch
git update-server-info
and then uploaded to the server in its own folder. If the server is S3, this can be done using the Upload folder feature in the AWS S3 Console.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for git-lfs-http-mirror-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428cf9b9feaf520d1e56bd96307c8ad790d95a2552f3f843dac2bf0393775f26 |
|
MD5 | 8eec872d5b6b6374e1b5cc1fad3928b3 |
|
BLAKE2b-256 | 1a6fa09a41ee82af39510598ead474ae47405e44c01c63f3146b61027d0bd88d |
Hashes for git_lfs_http_mirror-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662806e99c1ae093932fd2c90d8156d4c899a68b2f5073487990a39d86da45c6 |
|
MD5 | 85a906255b33ad0620f22c0975ceba9a |
|
BLAKE2b-256 | 7ca7ca67ab8412265f36077a77cafe7a9afed06a07df89e1e94ffd2a27325393 |