Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 940 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 940 Bytes

RubyGems.org Shipit

This is the shipit-engine instance for deploying RubyGems.org and related applications.

Setup MySQL

Shipit needs MySQL database to be running. You can copy config/database.yml.sample to config/database.yml and tweak.

Running tests

Once ready MySQL setup is ready, you can run tests using standard rails commands.

  1. initialize DB (needed only once)
bin/rails db:prepare
  1. run tests
bin/rails test

RBAC

The following RBAC rules are necessary:

kubectl create rolebinding shipit-access --clusterrole=cluster-admin --serviceaccount=shipit:default --namespace=shipit kubectl create rolebinding shipit-access --clusterrole=cluster-admin --serviceaccount=shipit:default --namespace=rubygems-staging kubectl create rolebinding shipit-access --clusterrole=cluster-admin --serviceaccount=shipit:default --namespace=rubygems-production