HUB
Sign inSign up

colstrom/rubygems-server

By colstrom

•Updated over 8 years ago

Server for Ruby Gems, also caching proxy and mirror, if you're into that sort of thing.

Image
1

5.4K

colstrom/rubygems-server repository overview

⁠docker-rubygems-server

⁠Description

Docker image providing rubygems-mirror⁠ and a gem server⁠.

⁠Deploying your Gem Server

Create a data container, so the gem server itself can be redeployed easily:

docker create --name rubygems-data -v /srv/gems busybox

Run the server:

docker run -d --volumes-from rubygems-data -p 9292 colstrom/rubygems-server

⁠Using your Gem Server

Set your rubygems mirror by following:

bundle config mirror.http://rubygems.org http://0.0.0.0:9292
gem sources --add http://0.0.0.0:9292

⁠Authenticating with GitHub

To restrict access to your Gem Server, you can set two environment variables:

  • GITHUB_ORGANIZATION to the organization you want to restrict access to.

If set, the Gem Server will require a valid GitHub token with org permissions, provided as a 'password' via HTTP Basic Auth.

If the user associated with the token is a member of the GITHUB_ORGANIZATION you set, that user will have access.

⁠License

MIT⁠

⁠Contributors

Tag summary
Recent tags
Content type
Image
Digest
sha256:123372d74…
Size
272.1 MB
Last updated
over 8 years ago
docker pull colstrom/rubygems-server:latest