When `gdk install` in a `geo.secondary` skip database seed
One of the non obvious step in bootstrapping GDK for Geo secondary, is to skip database seed, which you should do manually. This is non obvious to anyone who hasn't done this before. Also this is something we can automate and skip completely as we now have configuration we can probe.
Proposal
When gdk.yml
defines:
geo:
enabled: true
secondary: true
we should skip database seeding in support/boostrap-rails
.
geo.secondary
was introduced in !1405 (merged).
Instead of modifying support/bootstrap-rails
, it might be a nice opportunity to convert the code into a GDK library class, like lib/gdk/gitlab_rails/db.rb
.
Edited by Toon Claes