Skip to content
Snippets Groups Projects
Verified Commit 403a2af5 authored by Nailia Iskhakova's avatar Nailia Iskhakova :two:
Browse files

Adjust order for drop further

parent f3eac269
No related branches found
No related tags found
No related merge requests found
Pipeline #1203570473 passed
......@@ -167,6 +167,7 @@ class PGDumpGenerator
wait_until_gitlab_healthy
prepare_gds_configuration
run_gds
drop_db_for_seedfu
seed_fu_db_fixtures if @seed_fu
create_pg_dump_gz
copy_pg_dump_from_docker
......@@ -227,6 +228,9 @@ class PGDumpGenerator
run_command("docker exec #{@gitlab_cntr_name} bash -c \"cd /opt/gitlab/embedded/service/gitlab-rails; echo \\\"gem 'gitlab-rspec', path: 'gems/gitlab-rspec'\\\" >> Gemfile\"")
run_command("docker exec #{@gitlab_cntr_name} bash -c \"cd /opt/gitlab/embedded/service/gitlab-rails; ruby scripts/data_seeder/globalize_gems.rb; bundle install\"")
run_command("docker exec #{@gitlab_cntr_name} bash -c \"gitlab-ctl reconfigure\"")
end
def drop_db_for_seedfu
run_command("docker exec #{@gitlab_cntr_name} bash -c \"gitlab-ctl stop; gitlab-ctl start postgresql; gitlab-ctl start redis\"")
run_command("docker exec -e DISABLE_DATABASE_ENVIRONMENT_CHECK=1 #{@gitlab_cntr_name} bash -c \"gitlab-rake db:drop\"")
run_command("docker exec #{@gitlab_cntr_name} bash -c \"gitlab-ctl reconfigure\"") # create gitlab user, add permission
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment