Skip to content

Kazo-ca/git-cache-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-cache-http-server

Docker image wrapping git-cache-http-server for easy deployment. Caches Git repositories behind an HTTP proxy to speed up repeated clones and fetches.

Docker Hub

Quick Start

docker run -d -p 8080:8080 -v git_cache:/var/cache/git kazoca2/git-cache-http-server

Docker Compose

services:
  git-cache:
    image: kazoca2/git-cache-http-server
    ports:
      - "8080:8080"
    volumes:
      - git_cache:/var/cache/git
    restart: unless-stopped

volumes:
  git_cache:

Usage with Git

Configure Git to route HTTPS requests through the cache:

git config --global url."http://your-cache:8080/".insteadOf https://

Then git clone https://github.com/user/repo will transparently fetch through the cache.

Credits

This project wraps the upstream npm package: jonasmalacofilho/git-cache-http-server

Links

License

MIT

About

a docker container to cache git repository inside a docker. Use to cache repository with the `Kazo-ca/GitShadow-Worker-Compose` solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors