Migration steps from Redmine to Gitlab
Setup alpine-docker-gitlab
Docker
- Clone: https://github.com/clandmeter/alpine-docker-gitlab
- Use a docker-compose file like https://tpaste.us/Bo7b
- Generate secrets by exec contrib/secrets.sh
- Start docker containers with docker-compose up (keep it in the foreground to see if something goes wrong)
- See console for root password or look it up in the secrets files
- modify unicorn.rb and set process to threads+1
- restart docker-compose but in the background
Gitlab
- Login to gitlab as root
- Create alpine Group
- Create aports project
- Set group/project writable for users
- Add a SSH key to the root user (we need it to push aports)
- Create an API for the root user for migration
- git push aports with mirror option
Redmine
- Create api key for admin users on redmine
Migration
Installation of migrator
- clone https://github.com/johan-smits/redmine-gitlab-migrator
- Follow readme to install python application
Users
- Generate a users.txt file from the script on mysql db server
(
ssh root
alpine-db.nld3.alpin.pw sh /root/get-redmine-users.sh@) - migrate all bugs users to gitlab
- Script https://tpaste.us/baLW
- this makes all of them admins
Milestones
- Use migrator from https://github.com/johan-smits/redmine-gitlab-migrator
- migrate-rg roadmap —no-verify \
—redmine-key “$redmine_api_key” \
—gitlab-key “$gitlab_api_key” \
“redmine\_uri” “
gitlab_uri”
Issues
- Use migrator from https://github.com/johan-smits/redmine-gitlab-migrator
- migrate-rg issues —debug —no-verify —keep-id \
—redmine-key $redmine_api_key \
—gitlab-key $gitlab_api_key \
$redmine_uri $gitlab_uri - debug is to make it output something when its pre processing
Cleanup
- Reset all admin privs by setting admin=false in db for all users except admin
Configuration
- TODO
(from redmine: issue id 10634, created on 2019-06-28)
- Relations:
- parent #10573 (closed)