Tiago Scolari

bits for fun

Gemserver as a docker image

2014-07-18

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'