Skip to content

devfort/gem-mirror-cookbook

Repository files navigation

Description

This cookbook configures the machine as a mirror of http://rubygems.org/.

Requirements

Platform

  • Ubuntu 12.10 (that's all we support at /dev/fort, so that's all I've tested in for now.)

Attributes

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 to fort
  • 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'

Recipes

The main entrypoint for this cookbook is the default recipe.

Usage

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 tailing /var/log/upstart/gem-mirror.log.

TODO

  • client recipe

About

Configures the machine as a mirror of http://rubygems.org/.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages