Skip to main content

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

git-lfs-http-mirror-0.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

git_lfs_http_mirror-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page