|
Preface: for some reason the company's history, there is still a lot of code csv / svn on new projects had to walk the same time, github of enterprise price 2500 $ / y / 10p for changing programs and staff. also inappropriate. in order to allow some not accustomed to using linux developers use git, abandoned before gitolite server, and then use gitlab to build.
www.gitlab.com is gitlab warehouse, the previous version of history, you need to configure gitolite, then end with a server to support web functionality. The new package has achieved a key.
-download
Use https://about.gitlab.com/downloads/ to select the corresponding version
Wget directly after running a script can be a key.
The official version is very unfriendly, a key Bahrain, nothing configuration with a long time, find an address or repo domain.com ...
gitlab also supports installed separately, you specify the server, the database, if a device a, 7 process to go down, and too cumbersome. So we change the company out, bitnami out a key package.
Address https://bitnami.com/stack/gitlab/installer
Can be selected according to the system is 32 or 64bit, it is recommended to use recommended version.
Downloaded to the server, the 80-port server to go to the next check whether to occupy. Stopped nginx or apache / httpd
Them to 808x. I am here to use a fully qualified domain name to use gitlab,
e.g: http: //dev.domain.org
Before installation, delete the accounts already have git and git's home directory to ensure the system is clean.
[Root@www.linuxidc.com] # 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.run
Resolving downloads.bitnami.com ... 216.235.167.23
Connecting to downloads.bitnami.com | 216.235.167.23 |: 443 ... connected.
HTTP request sent, awaiting response ... 200 OK
Length: 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]
[Root @ fca-vm-demo-opt] # chmod a + x bitnami-gitlab-7.11.4-0-linux-x64-installer.run
[Root @ fca-vm-demo-opt] # ./bitnami-gitlab-7.11.4-0-linux-x64-installer.run
.. The installer detects that exists a 'git' user in the system This installer will change the configuration for this user Do you want to continue the installation [y / N]:? Y
.. The installer detects that exists a 'gitlab_ci' user in the system This installer will change the configuration for this user Do you want to continue the installation [y / N]:? Y
-------------------------------------------------- --------------------------
Welcome to the Bitnami Gitlab Stack Setup Wizard.
-------------------------------------------------- --------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
PhpPgAdmin [Y / n]: Y
GitLab: Y (Can not be edited)
GitLab CI [Y / n]: Y
Is the selection above correct [Y / n]:? Y
-------------------------------------------------- --------------------------
Installation folder
Please, choose a folder to install Bitnami Gitlab Stack
Select a folder [/opt/gitlab-7.11.4-0]: / opt / bitnami
-------------------------------------------------- --------------------------
Create Admin account
Bitnami Gitlab Stack admin user creation
Email Address [user@example.com]: rainysia@gmail.com
Login [user]: rainysia
Password:
Please confirm your password:
-------------------------------------------------- --------------------------
Hostname that will be used to create internal URLs. If this value is incorrect,
you may be unable to access your Gitlab installation from 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.org
Do you want to configure mail support [y / N]:? N
-------------------------------------------------- --------------------------
Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.
Do you want to continue [Y / n]:? Y
-------------------------------------------------- --------------------------
Please wait while Setup installs Bitnami Gitlab Stack on your computer.
Installing
______________ ______________ 0% 50% 100%
#########################################
-------------------------------------------------- --------------------------
Setup has finished installing Bitnami Gitlab Stack on your computer.
Info: To access the Bitnami Gitlab Stack, go to
http://dev.domain.org:80 from your browser.
Press [Enter] to continue:
This installed a middle-prone areas, git original account, and each gitlab git's home directory, and / var / opt gitlab directory, I do not have set up mail server
The use of very simple
There are a few instructions for use,
gitlab does not support the initial repo, so you need to use a https: // git repositories to import.
After you configure ssh key, in / profile this inside / profile / key e.g: http: //dev.domain.org/profile/keys
To ensure that you use the user's ssh key warehouse is id_ras.pub key
When the pulling directly git@dev.domain.org: username / project_name.git, if it is read, you can go http.
Because there is no port or take the other level 2, level 3 domains, you need to go to other ports, you need to reconfigure the domain where the entire gitlab in / opt / under, which is the application of apps, ctlscript.sh configuration weight set restart shell |
|
|
|