Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
PG Dump Generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
Developer Experience
PG Dump Generator
Commits
403a2af5
Verified
Commit
403a2af5
authored
11 months ago
by
Nailia Iskhakova
Browse files
Options
Downloads
Patches
Plain Diff
Adjust order for drop further
Signed-off-by:
Nailia Iskhakova
<
niskhakova@gitlab.com
>
parent
f3eac269
No related branches found
No related tags found
No related merge requests found
Pipeline
#1203570473
passed
11 months ago
Stage: generate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/pg_dump_generator.rb
+4
-0
4 additions, 0 deletions
lib/pg_dump_generator.rb
with
4 additions
and
0 deletions
lib/pg_dump_generator.rb
+
4
−
0
View file @
403a2af5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment