see: https://about.gitlab.com/downloads/#centos7
summary
# yum update # firewall-cmd --permanent --add-service=http # systemctl reload firewalld # curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash # yum install gitlab-ce # gitlab-ctl reconfigure
prepare
# yum update # firewall-cmd --permanent --add-service=http # systemctl reload firewalld (if you need) # reboot # firewall-cmd --state running # firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: enp0s3 enp0s8 sources: services: dhcpv6-client http ssh ports: protocols: masquerade: no forward-ports: sourceports: icmp-blocks: rich rules: #
add GitLab package repository setting
# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash Detected operating system as centos/7. *snip* Installed: yum-utils.noarch 0:1.1.31-40.el7 Dependency Installed: libxml2-python.x86_64 0:2.9.1-6.el7_2.3 python-chardet.noarch 0:2.2.1-1.el7_1 python-kitchen.noarch 0:1.1.1-5.el7 Complete! Generating yum cache for gitlab_gitlab-ce... Importing GPG key 0xE15E78F4: Userid : "GitLab B.V. (package repository signing key) <packages@gitlab.com>" Fingerprint: 1a4c 919d b987 d435 9396 38b9 1421 9a96 e15e 78f4 From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey The repository is setup! You can now install packages. # # ls -l /etc/yum.repos.d/gitlab_gitlab-ce.repo -rw-r--r-- 1 root root 571 May 27 15:29 /etc/yum.repos.d/gitlab_gitlab-ce.repo #
install the package
# yum install gitlab-ce Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp Resolving Dependencies --> Running transaction check ---> Package gitlab-ce.x86_64 0:9.2.2-ce.0.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Installing: gitlab-ce x86_64 9.2.2-ce.0.el7 gitlab_gitlab-ce 311 M Transaction Summary ==================================================================================================== Install 1 Package Total download size: 311 M Installed size: 910 M Is this ok [y/d/N]: y Downloading packages: gitlab-ce-9.2.2-ce.0.el7.x86_64.rpm | 311 MB 00:00:37 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : gitlab-ce-9.2.2-ce.0.el7.x86_64 1/1 *. *. *** *** ***** ***** .****** ******* ******** ******** ,,,,,,,,,***********,,,,,,,,, ,,,,,,,,,,,*********,,,,,,,,,,, .,,,,,,,,,,,*******,,,,,,,,,,,, ,,,,,,,,,*****,,,,,,,,,. ,,,,,,,****,,,,,, .,,,***,,,, ,*,. _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ `/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/ gitlab: Thank you for installing GitLab! gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND: sudo gitlab-ctl reconfigure gitlab: GitLab should be reachable at http://gitlab2 gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file gitlab: And running reconfigure again. gitlab: gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md gitlab: It looks like GitLab has not been configured yet; skipping the upgrade script. Verifying : gitlab-ce-9.2.2-ce.0.el7.x86_64 1/1 Installed: gitlab-ce.x86_64 0:9.2.2-ce.0.el7 Complete! #
configure and start GitLab
# gitlab-ctl reconfigure Starting Chef Client, version 12.12.15 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - package (0.0.0) - gitlab (0.0.1) - runit (0.14.2) *snip* Running handlers: Running handlers complete Chef Client finished, 327/438 resources updated in 01 minutes 20 seconds gitlab Reconfigured! #
access by the browser (Chrome)
access to http://<IP address>/