Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1017 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 1017 Bytes

docker-gemstash

Docker image for gemstash.

Pull gemstash image

docker pull  minimum2scp/gemstash:latest

Build gemstash image

docker build -t minimum2scp/gemstash:dev .

Run gemstash container

Run container:

docker run --name gemstash minimum2scp/gemstash:latest

And use with bundler:

gemstash_uri=http://$(docker inspect gemstash | jq -r '.[].NetworkSettings.IPAddress'):9292
bundle config --global mirror.https://rubygems.org ${gemstash_uri}

Environment Variables

Environment variables which starts with GEMSTASH_ will be mapped to /etc/gemstash/config.yml by entrypoint script.

  • GEMSTASH_BASE_PATH
  • GEMSTASH_CACHE_TYPE
  • GEMSTASH_MEMCACHED_SERVERS
  • GEMSTASH_DB_ADAPTER
  • GEMSTASH_DB_URL
  • GEMSTASH_RUBYGEMS_URL
  • GEMSTASH_BIND
  • GEMSTASH_PROTECTED_FETCH
  • GEMSTASH_FETCH_TIMEOUT

See https://github.com/bundler/gemstash/blob/master/docs/gemstash-configuration.5.md for details.