Skip to content

lox/apt-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a873c37 · Nov 11, 2014

History

7 Commits
Nov 10, 2014
Nov 10, 2014
Nov 3, 2014
Nov 10, 2014
Nov 3, 2014
Nov 6, 2014
Nov 6, 2014
Nov 10, 2014
Nov 10, 2014
Nov 3, 2014

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