rubygems / shipit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

You can also use pre-configured setup (originally prepared for CI) using docker-compose.

cp config/database.ci.yml config/database.ylm
docker-compose up -d

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:setup
  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

About


Languages

Language:Ruby 76.0%Language:HTML 22.5%Language:Dockerfile 1.3%Language:Shell 0.3%