Skip to main content

A streamlined REST API for access to Git repositories

Project description

A streamlined REST API for wrapping access to Git repositories.

Running

Running

python manage.py runserver –host 0.0.0.0 –port 65004

This will run the process locally on port 65004, the –host 0.0.0.0 is there so that hosts other than localhost can access the service, omit it if this is not required.

Docker

Building

docker build -t lazy_git:latest .

This will build an image based on the official [Python 3 Docker image](https://hub.docker.com/_/python/) and defaults to setting the LAZY_GIT_MODE environment variable to Production.

Running

docker run -d -p <local_port>:65004 –name lazy_git -v <local_repo_dir>:/var/lazy_git lazy_git:latest

This command will run a lazy_git process in the background on the port specified in <local_port>. If you want to override the LAZY_GIT_MODE environment variable (or any other, such as LAZY_GIT_CONFIG) then use the [-e argument](https://docs.docker.com/engine/reference/run/#/env-environment-variables).

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazy_git-0.2.tar.gz (3.9 kB view hashes)

Uploaded Source

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