This is the shipit-engine instance for deploying RubyGems.org and related applications.
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
Once ready MySQL setup is ready, you can run tests using standard rails commands.
- initialize DB (needed only once)
bin/rails db:setup
- run tests
bin/rails test
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