Skip to content

SafeEval/docker-squid-deb-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Docker container creates an instance of squid-deb-proxy that listens for apt connections on port 8002, and caches the packages.

Several third party repositories are configured in the ACL, in addition to official repositories.

Server Deployment

Using Docker Compose

Build the image and run the container locally.

docker-compose up

Using Docker Swarm Mode

Build the image.

docker build -t squid-deb-proxy .

Deploy the container to the swarm.

docker stack deploy -c docker-compose.yml debcache

Client Configuration

Configure apt on clients to use the proxy by specifying it in the /etc/apt/apt.conf.d/00squidproxy file.

# /etc/apt/apt.conf.d/00squidproxy

Acquire {
  Retries "0";
  HTTP { Proxy "http://<proxy IP>:<proxy port>"; };
};

About

A containerized instance of squid-deb-proxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published