Skip to content

Dockerfile for building docker image to run Squid-based reverse proxies to rubygems.org, for speeding-up `gem install` or `bundle install`

Notifications You must be signed in to change notification settings

mumoshu/docker-squid-gem-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squid-gem-proxy

Run squid as a reverse proxy to http://rubygems.org in a docker container:

docker pull mumoshu/squid-gem-proxy

docker run -d -p 49003:80 mumoshu/squid-gem-proxy

It's not specific to squid-gem-proxy, but you need to enable NAT between your host and the vm when Docker is running inside boot2docker:

VBoxManage controlvm "boot2docker-vm" natpf1 "squid,tcp,127.0.0.1,49003,,49003"

And then time a few http requests through the proxy with something like:

time gem install BIG-GEM --source http://127.0.0.1:49003

You can also add it to gem's sources:

gem sources -a http://127.0.0.1:49003

Or even define it in your Gemfile:

source 'http://127.0.0.1:49003'

About

Dockerfile for building docker image to run Squid-based reverse proxies to rubygems.org, for speeding-up `gem install` or `bundle install`

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published