An open API service indexing awesome lists of open source software.

https://github.com/ninech/gemstash-docker

Host your own Rubygems server in Docker
https://github.com/ninech/gemstash-docker

docker docker-compose gemstash kubernetes openshift ruby rubygems rubygems-mirror

Last synced: 12 months ago
JSON representation

Host your own Rubygems server in Docker

Awesome Lists containing this project

README

          

# Docker Image for Gemstash

This repository contains everything to build a Docker image for [Bundler's Gemstash](https://github.com/bundler/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