Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
infra
infra
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards
  • alpine
  • infra
  • infrainfra
  • Issues
  • #10634

Closed
Open
Opened Jun 28, 2019 by Carlo Landmeter@clandmeterOwner

Migration steps from Redmine to Gitlab

Setup alpine-docker-gitlab

Docker

  1. Clone: https://github.com/clandmeter/alpine-docker-gitlab
  2. Use a docker-compose file like https://tpaste.us/Bo7b
  3. Generate secrets by exec contrib/secrets.sh
  4. Start docker containers with docker-compose up (keep it in the foreground to see if something goes wrong)
  5. See console for root password or look it up in the secrets files
  6. modify unicorn.rb and set process to threads+1
  7. restart docker-compose but in the background

Gitlab

  1. Login to gitlab as root
  2. Create alpine Group
  3. Create aports project
  4. Set group/project writable for users
  5. Add a SSH key to the root user (we need it to push aports)
  6. Create an API for the root user for migration
  7. git push aports with mirror option

Redmine

  1. Create api key for admin users on redmine

Migration

Installation of migrator

  1. clone https://github.com/johan-smits/redmine-gitlab-migrator
  2. Follow readme to install python application

Users

  1. Generate a users.txt file from the script on mysql db server (ssh rootalpine-db.nld3.alpin.pw sh /root/get-redmine-users.sh@)
  2. migrate all bugs users to gitlab
    • Script https://tpaste.us/baLW
    • this makes all of them admins

Milestones

  1. Use migrator from https://github.com/johan-smits/redmine-gitlab-migrator
  2. migrate-rg roadmap —no-verify \
    —redmine-key “$redmine_api_key” \
    —gitlab-key “$gitlab_api_key” \
    “$redmine_uri” “$gitlab_uri”

Issues

  1. Use migrator from https://github.com/johan-smits/redmine-gitlab-migrator
  2. migrate-rg issues —debug —no-verify —keep-id \
    —redmine-key $redmine_api_key \
    —gitlab-key $gitlab_api_key \
    $redmine_uri $gitlab_uri
  3. debug is to make it output something when its pre processing

Cleanup

  1. Reset all admin privs by setting admin=false in db for all users except admin

Configuration

  1. TODO

(from redmine: issue id 10634, created on 2019-06-28)

  • Relations:
    • parent #10573 (closed)
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/infra/infra#10634