Commit a64724611fa972dfc06fc72bf1fe80c93a4b80f1
Exists in
spb-stable
and in
2 other branches
Merge branch 'import-check' into 'master'
Import check /cc @dzaporozhets
Showing
2 changed files
with
2 additions
and
30 deletions
Show diff stats
doc/raketasks/README.md
| 1 | + [Backup restore](backup_restore.md) | 1 | + [Backup restore](backup_restore.md) |
| 2 | + [Cleanup](cleanup.md) | 2 | + [Cleanup](cleanup.md) |
| 3 | + [Features](features.md) | 3 | + [Features](features.md) |
| 4 | -+ [Maintenance](maintenance.md) | 4 | ++ [Maintenance](maintenance.md) and self-checks |
| 5 | + [User management](user_management.md) | 5 | + [User management](user_management.md) |
| 6 | + [Web hooks](web_hooks.md) | 6 | + [Web hooks](web_hooks.md) |
| 7 | ++ [Import](import.md) of git repositories in bulk |
doc/raketasks/maintenance.md
| @@ -110,32 +110,3 @@ If necessary, remove the `tmp/repo_satellites` directory and rerun the command b | @@ -110,32 +110,3 @@ If necessary, remove the `tmp/repo_satellites` directory and rerun the command b | ||
| 110 | ``` | 110 | ``` |
| 111 | bundle exec rake gitlab:satellites:create RAILS_ENV=production | 111 | bundle exec rake gitlab:satellites:create RAILS_ENV=production |
| 112 | ``` | 112 | ``` |
| 113 | - | ||
| 114 | -### Import bare repositories into GitLab project instance | ||
| 115 | - | ||
| 116 | -Notes: | ||
| 117 | - | ||
| 118 | -* project owner will be a first admin | ||
| 119 | -* groups will be created as needed | ||
| 120 | -* group owner will be the first admin | ||
| 121 | -* existing projects will be skipped | ||
| 122 | - | ||
| 123 | -How to use: | ||
| 124 | - | ||
| 125 | -1. copy your bare repos under git repos_path (see `config/gitlab.yml` gitlab_shell -> repos_path) | ||
| 126 | -2. run the command below | ||
| 127 | - | ||
| 128 | -``` | ||
| 129 | -bundle exec rake gitlab:import:repos RAILS_ENV=production | ||
| 130 | -``` | ||
| 131 | - | ||
| 132 | -Example output: | ||
| 133 | - | ||
| 134 | -``` | ||
| 135 | -Processing abcd.git | ||
| 136 | - * Created abcd (abcd.git) | ||
| 137 | -Processing group/xyz.git | ||
| 138 | - * Created Group group (2) | ||
| 139 | - * Created xyz (group/xyz.git) | ||
| 140 | -[...] | ||
| 141 | -``` |