Skip to content
Snippets Groups Projects

Add support for running GitLab Geo tracking database

Merged Stan Hu requested to merge support-gitlab-geo-tracking-db into master
1 unresolved thread
Files
5
+ 19
0
#!/usr/bin/env ruby
success = true
begin
foreman_pid = spawn('./run', 'geo_db')
[
%W(bundle exec rake geo:db:setup)
].each do |cmd|
success &&= system({'force' => 'yes', 'BOOTSTRAP' => '1'}, *cmd, chdir: 'gitlab')
end
ensure
Process.kill('TERM', foreman_pid)
end
Process.wait(foreman_pid)
exit true if success
abort "#$0 failed"
Loading