Skip to content

lox/apt-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apt Proxy

A caching proxy specifically for apt package caching, also rewrites to the fastest local mirror. Built as a tiny docker image for easy deployment.

Built because apt-cacher-ng is unreliable.

Running via Go

go install github.com/lox/apt-proxy
$GOBIN/apt-proxy

Running in Docker for Development

docker build --rm --tag=apt-proxy-dev .
docker run -it --rm --publish=3142 --net host apt-proxy-dev

Building in Docker for Release

docker build --rm --tag=apt-proxy-dev .
docker run -it --cidfile last-cid apt-proxy-dev ./build.sh
docker cp $(cat last-cid):/apt-proxy release/
docker build --tag=apt-proxy ./release
rm last-cid

Running from Docker

docker run -it --rm --publish=3142 --net host lox24/apt-proxy

Debugging

http_proxy=http://192.168.33.1:3142 apt-get -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true update
http_proxy=http://192.168.33.1:3142 apt-get -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true install apache2

About

A caching proxy specifically for apt package caching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published