Skip to content

dotnet core git caching server

Notifications You must be signed in to change notification settings

brogdogg/git-cache

Repository files navigation

Git Cache

Requirements

Local Runs

  • .NET 8.0
  • bash

Docker Runs

  • Docker

Development

  • Visual Studio 2022

Running

Currently the implementation uses bash to execute commands, so it runs fine on Linux or MacOS. For Windows, it is suggested to run from a Docker container:

> docker-compose up
Starting git-cache_git-cache-data_1 ... done
Starting git-cache_git-cache_1      ... done
Attaching to git-cache_git-cache_1, git-cache_git-cache-data_1
git-cache-data_1  | Data container for Git cache
git-cache_git-cache-data_1 exited with code 0
git-cache_1       | Hosting environment: Development
git-cache_1       | Content root path: /app
git-cache_1       | Now listening on: https://[::]:8085
git-cache_1       | Application started. Press Ctrl+C to shut down.

At this point should be able to clone using the cache:

> git clone https://localhost:8085/api/Git/github.com/{owner}/{repo}

Configuration

The default port on the host is 8085. This can be controlled with an environment variable GIT_HTTP_PORT=8888 or with a .env file.

About

dotnet core git caching server

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published