This cookbook configures the machine as a mirror of http://rubygems.org/.
- Ubuntu 12.10 (that's all we support at /dev/fort, so that's all I've tested in for now.)
Cookbook attributes are named under the gem_mirror
namespace.
default['gem_mirror']['data_dir']
- directory to store mirrored gems in, defaults to/data/rubygems
default['gem_mirror']['user']
- user to host gem mirror as, defaults tofort
node['gem_mirror']['apache']['listen_hostname']
- Hostname to listen on for RubyGems Apache virtualhost, defaults to '*'node['gem_mirror']['apache']['listen_port']
- Port to listen on for RubyGems Apache virtualhost, defaults to '80'
The main entrypoint for this cookbook is the default
recipe.
Include gem-mirror
and it will start replicating http://rubygems.org. This will take a very long time (probably a few days), and require tens of gigabytes of storage (~110GB, at time of writing). You have been warned.
You can keep an eye on the mirroring progress by running tail
ing /var/log/upstart/gem-mirror.log
.
client
recipe