1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
11 // Populate a blank database with arvados tables and seed rows.
12 type seedDatabase struct{}
14 func (seedDatabase) String() string {
18 func (seedDatabase) Run(ctx context.Context, fail func(error), super *Supervisor) error {
19 err := super.wait(ctx, runPostgreSQL{}, installPassenger{src: "services/api"})
23 if super.ClusterType == "production" {
26 err = super.RunProgram(ctx, "services/api", runOptions{env: railsEnv}, "bundle", "exec", "rake", "db:setup")
30 err = super.RunProgram(ctx, "services/api", runOptions{env: railsEnv}, "bundle", "exec", "./script/get_anonymous_user_token.rb")