Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.09 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.09 KB

rubygems-mirror-docker

Docker image of rubygems-mirror. This image includs rubygems-mirror and geminabox as a server.

Usage

Before starting the gem mirror server, it needs to fetch packages from rubygems to mirror directory. Create data container first to make the gem packages portable.

docker create --name gems-data -v /data/rubygems busybox
# Fetch packages to data only container
docker run -d --volumes-from gems-data mookjp/rubygems-mirror-docker gem mirror

then run the server as your mirror.

docker run -d --volumes-from gems-data -p 9292 mookjp/rubygems-mirror-docker

Set your mirror

Set your rubygems mirror by following:

bundle config mirror.http://rubygems.org http://0.0.0.0:9292
gem sources --add http://0.0.0.0:9292