Centos/debian configuration Gitlab 7.1x to build a self-built git repository.

Source: Internet
Author: User

Centos/debian configuration Gitlab 7.1x to build a self-built git repository. Preface: Because of some historical reasons for the company, a lot of code is still on the CSV/SVN. The new project had to go this way, and the price of GitHub's enterprise 2500$/y/10p was inappropriate for the most varied projects and people. And in order for some of the unused Linux developers to use Git, they gave up the previous Gitolite server and used Gitlab to build it.

Www.gitlab.com is a repository of Gitlab, previous historical versions that need to be configured with Gitolite and then server side to support Web functionality. The new one has implemented a key package.

- Download

Use https://about.gitlab.com/downloads/to select the corresponding version
Run a button script directly after wget.

This official version is very unfriendly, loaded with a button, and nothing is configured. With a half day, found repo address or domain.com ...

Gitlab also support separate installation, you specify the server, database these, if a one-pack, 7 processes go down, too cumbersome. So we change a company out of, Bitnami out of a key package.

Address in Https://bitnami.com/stack/gitlab/installer

Can be selected according to the system is 32 or 64bit, it is recommended to use the recommended version.

After downloading to the server, first check the server 80 port is occupied. Stop Nginx or APACHE/HTTPD
Turn them to 808x. I'm going to use the Gitlab with a full domain name here,
e.g:http://dev.domain.org

before installing , delete the existing Git account, and Git's home directory. Ensure the system is clean.

[[email protected]]# wget https://downloads.bitnami.com/files/stacks/gitlab/7.11.4-0/ bitnami-gitlab-7.11.4-0-linux-x64-installer.run--2015-06-09 19:31:19--https://downloads.bitnami.com/files/ Stacks/gitlab/7.11.4-0/bitnami-gitlab-7.11.4-0-linux-x64-installer.runresolving downloads.bitnami.com ... 216.235.167.23Connecting to downloads.bitnami.com|216.235.167.23|:443 ... Connected. HTTP request sent, awaiting response ... oklength:311542012 (297M) [application/x-makeself]saving to: "Bitnami-gitlab-7.11.4-0-linux-x64-installer.run" 100%[========================================================================================================== =================================================>] 311,542,012 2.06m/s in 2m 40s 2015-06-09 19:34:05 (1.86 mb/s)- "Bitnami-gitlab-7.11.4-0-linux-x64-installer.run" saved [311542012/311542012][[email protected]]# chmod a+x Bitnami-gitlab-7.11.4-0-linux-x64-installer.run [[email protected]]#./ Bitnami-gitlab-7.11.4-0-linux-x64-insTaller.run The installer detects that exists a ' git ' user in the system. This installer would change the configuration for this user. Want to continue the installation? [y/n]: Ythe installer detects that exists a ' gitlab_ci ' user in the system. This installer would change the configuration for this user. Want to continue the installation? [y/n]: y----------------------------------------------------------------------------Welcome to the Bitnami Gitlab Stack Setup Wizard.----------------------------------------------------------------------------Select The want to install; Clear the want to install. Click Next When your is ready to continue. Phppgadmin [y/n]: Y gitlab:y (cannot be edited) GitLab CI [y/n]: YIs The selection above correct? [y/n]: Y----------------------------------------------------------------------------installation Folderplease,  Choose a folder to install Bitnami Gitlab stackselect a folder [/opt/gitlab-7.11.4-0]:/opt/bitnami----------------------------------------------------------------------------Create Admin Accountbitnami Gitlab Stack Admin user creationemail Address [[email protected]]:[email protected]Login [user]:RainysiaPassword:P Lease Confirm your Password:--------------------------------------------------------------------------- -hostname that'll be used to create internal URLs. If This value is incorrect, the unable to access your Gitlab installation from the other computers. It is advisable to use a Domain instead of an IP address for compatibility with different browsers. Domain [127.0.0.1]:dev.domain.orgDo you want to configure mail support? [y/n]: N----------------------------------------------------------------------------Setup is now ready to begin Installing Bitnami Gitlab Stack on your computer. Want to continue? [y/n]: Y----------------------------------------------------------------------------, wait while Setup Installs Bitnami Gitlab Stack on your computer. Installing 0% ______________ 50% ______________ 100% #########################################---------------------- ------------------------------------------------------Setup have finished installing Bitnami Gitlab Stack on your Computer. Info:to access the Bitnami Gitlab Stack, go tohttp://dev.domain.org:80 from your browser. Press [Enter] to continue:

So it's loaded. In the middle of the problem, git original account, each Gitlab and git home directory, and/var/opt under the Gitlab directory, I do not set up mail server

It 's easy to use.

There are several instructions for use,

    1. Gitlab does not support initial repo, so you need to import it with a https://git repository first.
    2. After configuring SSH key, it is in the/profile/profile/key E.g:http://dev.domain.org/profile/keys
    3. Ensure that the user's SSH key that you want to use the warehouse is Id_ras.pub key
    4. Pull the time directly with [email protected]:username/project_name.git, if it is read, you can go HTTP.
    5. Because there is no other port or 2-level, 3-level domain name, so need to go to other ports, need to be re-provisioned in the domain name. The entire gitlab is under/opt/, the apps in it are applied, and the CTLSCRIPT.SH is configured to reset and restart the shell

Centos/debian configuration Gitlab 7.1x to build a self-built git repository.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.