Skip to content

millerjp/vagrant-squid-deb-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-squid-deb-proxy

Simple squid-deb-proxy image for caching deb packages.

Prerequisites

  1. Install VirtualBox
  2. Install Vagrant

Installation

  1. Clone this repository

     git clone https://github.com/millerjp/vagrant-squid-deb-proxy.git
     cd vagrant-squid-deb-proxy
    
  2. The default static IP is 10.211.99.100.

  3. Start the VM

     vagrant up
    
  4. In the provisioning script for your other VMs, include these steps (adjusting IP address if you've changed it):

     # install and configure for local debian proxy (if present)
     apt-get install squid-deb-proxy-client -y
     echo 'Acquire::http::Proxy "http://10.211.99.100:8000/";' | sudo tee /etc/apt/apt.conf.d/30autoproxy
    
  5. Now start your other VMs as normal. They should start using this VM as a proxy/cache during any apt-get commands.

Notes

  1. Connect up to the VM

     vagrant ssh
    
  2. Tail the squid logs

     sudo tail -1000f /var/log/squid-deb-proxy/access.log
    

Credit

This has been copied and and modified for my set-up from Brian Cantoni's project: https://github.com/bcantoni/vagrant-deb-proxy . He has some great Vagrant images - check them out.

Licence

This is distributed under Apache License v2 and comes without any support. But feel free to use it :)

About

Simple squid-deb-proxy image for cache deb packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published