Skip to content

Host your own Rubygems server in Docker

Notifications You must be signed in to change notification settings

ninech/gemstash-docker

Repository files navigation

Docker Image for Gemstash

This repository contains everything to build a Docker image for Bundler's Gemstash. With Gemstash you can run your private Rubygems mirror or a gem server to host your private Rubygems.

docker build -t gemstash .
docker run -p 9292:9292 -v $(pwd)/gemstash-data:/var/lib/gemstash gemstash

The following environment variables can be used to configure Gemstash:

DB_USER, DB_PASSWORD, DB_HOST, DB_NAME: Define database connection parameters for the MySQL connection.

MEMCACHED_SERVERS: Add a Memcached instance to do the caching. (memcachedserver1:11211)

Create an authorization key go into the gemstash container and run the following command:

$ docker exec -ti gemstash /bin/sh
$ gemstash authorize push --config-file config.yml.erb