{"id":2538,"date":"2020-01-27T19:33:24","date_gmt":"2020-01-28T01:33:24","guid":{"rendered":"http:\/\/linuxitos.com\/main\/?p=2538"},"modified":"2020-01-27T19:33:26","modified_gmt":"2020-01-28T01:33:26","slug":"instalar-gitlab-ce-en-centos-7","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-gitlab-ce-en-centos-7\/","title":{"rendered":"Instalar Gitlab CE en CentOS 7"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"743\" src=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1024x743.png\" alt=\"\" class=\"wp-image-2539\" srcset=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1024x743.png 1024w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-300x218.png 300w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-768x557.png 768w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23.png 1331w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfQu\u00e9 es Gitlab?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Gitlab es un servicio web de control de versiones y desarrollo de software colaborativo basado en Git. Adem\u00e1s de gestor de repositorios, el servicio ofrece tambi\u00e9n alojamiento de wikis y un sistema de seguimiento de errores, todo ello publicado bajo una Licencia de c\u00f3digo abierto.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fue escrito por los programadores ucranianos Dmitriy Zaporozhets y Valery Sizov en el lenguaje de programaci\u00f3n Ruby. La compa\u00f1\u00eda, GitLab Inc., cuenta con un equipo de 150 miembros y m\u00e1s de 1400 usuarios.\u200b Es usado por organizaciones como la NASA, el CERN, IBM o Sony.<br><a href=\"https:\/\/about.gitlab.com\/\">https:\/\/about.gitlab.com\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Instalar dependencias<\/h2>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo yum install curl policycoreutils-python openssh-server<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">yum install postfix<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">systemctl start postfix<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">systemctl enable postfix<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">systemctl status postfix<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Agregar repositorio de gitlab e instalar<\/h2>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo curl https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.rpm.sh | sudo bash<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ahora instalar gitlab-ce con la url que tengan como dominio, si usan in dominio activo, podr\u00e1n usarlo como tal, si es en una red local, entonces usar la ip local.<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo EXTERNAL_URL=\"https:\/\/linuxitos.com\" yum install -y gitlab-ce<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Iniciar configuraci\u00f3n de Gitlab<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Si desean cambiar la url de c\u00f3mo acceder\u00e1 a gitlab instalado en su servidor, entonces abrir el archivo siguiente:<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo gedit \/etc\/gitlab\/gitlab.rb<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[...]\nexternal_url 'https:\/\/linuxitos.com'\n[...]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Iniciar configuraci\u00f3n de gitlab<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo gitlab-ctl reconfigure<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Si se usa un sistema de firewall por comandos, entonces ejecutar los siguientes:<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo firewall-cmd --permanent --add-service=80\/tcp<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo firewall-cmd --permanent --add-service=443\/tcp<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo systemctl reload firewalld<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">O bien utilizar la versi\u00f3n gr\u00e1fica de firewall para agregar los puertos 80 y 443.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"523\" src=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41-1024x523.png\" alt=\"\" class=\"wp-image-2540\" srcset=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41-1024x523.png 1024w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41-300x153.png 300w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41-768x392.png 768w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41-1536x784.png 1536w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41-1600x817.png 1600w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Captura-de-pantalla-de-2020-01-27-16-36-41.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Probar el sitio web<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">En mi caso utilic\u00e9 https:\/\/linuxitos.com y lo cambi\u00e9 a ip local, por lo tanto se accede de la siguiente manera:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"743\" src=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1-1024x743.png\" alt=\"\" class=\"wp-image-2541\" srcset=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1-1024x743.png 1024w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1-300x218.png 300w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1-768x557.png 768w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-27-18-37-23-1.png 1331w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Y eso ser\u00eda todo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00bfQu\u00e9 es Gitlab? Gitlab es un servicio web de control de versiones y desarrollo de software colaborativo basado en Git. Adem\u00e1s de gestor de repositorios, el servicio ofrece tambi\u00e9n alojamiento de wikis y un sistema de seguimiento de errores, todo ello publicado bajo una Licencia de c\u00f3digo abierto. Fue escrito por los programadores ucranianos Dmitriy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1511],"tags":[1668,1669],"class_list":["post-2538","post","type-post","status-publish","format-standard","hentry","category-server","tag-centos","tag-gitlab"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/2538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=2538"}],"version-history":[{"count":1,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/2538\/revisions"}],"predecessor-version":[{"id":2542,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/2538\/revisions\/2542"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=2538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=2538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=2538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}