Gemserver as a docker image

Posted by on Jul 18, 2014
In Ruby On Rails, Server

I’ve posted before about how to setup a private gemserver using geminabox, but I’ve just released a docker image that does the all the job:

docker pull tscolari/gemserver
docker run -e USERNAME=test -e PASSWORD=password -p localhost:3000:3000 -d tscolari/gemserver

This will start the server on your localhost:3000. You can then use it in the Gemfile:

source 'http://test:password@localhost:3000'
source 'https://rubygems.org'

...
gem 'my_private_gem', '>= 0.0.1'