====== GitLab ====== ===== Descripción ===== ===== Prerequistos ===== ===== Instalación ===== ===== Configuración ===== ==== 1. Una accion ==== ==== 2. Segunda accion ==== ===== Trucos ===== === 1. Sacar backup === https:%%//%%docs.gitlab.com/ee/raketasks/backup_restore.html\\ \\ === 2. Cambio el nombre del repositorio === se deben realizar los siguientes pasos en cada equipo donde esté instalado un sistema que contenga referencia a un repositorio de GIT skinatech\\ \\ para este ejemplo se utiliza el repositorio de backend de Orfeo NG:\\ \\ #En local, en caso de necesitar hacer algo con el repositorio anterior:\\ \\ $#1 - Renombrar la referencia al repositorio anterior\\ $> git remote rename origin origin_old\\ \\ $#2 - Agregar el nuevo repositorio\\ $> git remote add origin http:%%//%%aruba.skinatech.com/skinatech/ng_backend.git\\ \\ \\ #En Producción:\\ $#1 - Eliminar la referencia al repositorio anterior\\ $> git remote remove origin\\ \\ $#2 - Agregar el nuevo repositorio\\ $> git remote add origin http:%%//%%aruba.skinatech.com/skinatech/ng_backend.git\\ \\ $# Ver las referencias hacia el/los repositorios de GIT\\ $> git remote -v\\ \\ =====   ===== ===== Trucos ===== ==== 1. Convertir SVN a GIT ==== Tiene que tener instalado git-svn para traerse la copia\\ \\ a) Primero cree un archivo texto  que hace el mapeo de usuarios\\ \\ kasandra = Jaime E Gomez H \\ root = Jaime E Gomez H \\ jmgamez = Jenny Gamez \\ amosquera = Andrés Mosquera \\ imartinez = Ivan Martinez \\ dluque = Ghost User \\ ebustos = Ghost User \\ b) Ahora haga la copia a un directorio vacio\\ \\ git svn clone http:%%//%%monserrat.skinatech.com:81/svn/mecalab -A authors.txt -T trunk -b branches -t tags  mecalab\\ \\ git svn clone http:%%//%%monserrat.skinatech.com:81/svn/mecalab -stdlayout  mecalab\\ \\ Puede agregar un .gitignore si es necesario\\   git svn show-ignore > .gitignore git add .gitignore git commit -m 'Migrate svn:ignore to .gitignore' \\ \\ c) Hagase un proyecto vacio en Gitlab\\ \\ \\ d) Suba la copia\\ \\ git remote add origin https:%%//%%github.com//.git\\ \\ git remote add origin http:%%//%%aruba.skinatech.com/SkinaTech/efica_mecalab.git\\ \\ git push -u origin master\\   \\ https:%%//%%www.atlassian.com/git/tutorials/migrating-overview\\ https:%%//%%www.atlassian.com/git/tutorials/migrating-convert\\ \\ https:%%//%%docs.gitlab.com/ee/user/project/import/svn.html ===== Problemas ===== ==== 1. Los certificados se vencieron ==== cd /etc/gitlab/ssl/acme/\\ rm ReverseProxy.all.pem\\ cp /home/admin/ReverseProxy/\\*.skinatech.com/fullchain.cer ReverseProxy.fullchain\\ cp /home/admin/ReverseProxy/\\*.skinatech.com/ca.cer ReverseProxy.ca\\ cp /home/admin/ReverseProxy/\\*.skinatech.com/\\*.skinatech.com.cer ReverseProxy.crt\\ cp /home/admin/ReverseProxy/\\*.skinatech.com/\\*.skinatech.com.key ReverseProxy.key\\ gitlab-ctl reconfigure\\ gitlab-ctl restart\\ \\ aaa Referencias - FIN ---- __**Advertencia**__ Este documento es privado y es de u so exclusivo de sus autores y de SKINA TECH. Cualquier uso sin una autorización escrita es contra la ley de derechos de autor y de propiedad intelectual, y será motivo de una acción legal. ----   ============================================================== 15-Marzo-2006 J.E.Gomez v1.0 Primera version