Build Virtual Box & Vagrant & Centos7 & GitLab

** Something like Hello GitLab **

** 0. Prerequisites **

- Windows 10 Home
- Oracle VM Virtualbox 6.0.22
- vagrant 2.2.6
- Centos 7.8
- Box centos/7
- GitLab CE 10.2.5

** 1. Installation of dependent packages, etc. **

sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld

--Email sending settings --See below when using external SMTP See below for external use Use external SMTP --When installing, follow

sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

** 2. Install GitLab by specifying Version (this time specify 10.2.5) **

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce-10.2.5-ce.0.el7.x86_64

--If you want to install another version, search from the following gitlab repositories

** 3. Initial construction work before startup **

#Edit Gitlab configuration file(Modify DB information as needed, etc.)
sudo vi /etc/gitlab/gitlab.rb

#Rebuilding(Initial construction)
sudo gitlab-ctl reconfigure

** 4. How to start GitLab **

sudo systemctl start gitlab-runsvdir

--Automatic start setting enabled / disabled is as follows

#Enable autostart
sudo systemctl enable gitlab-runsvdir.service
#Disable autostart
sudo systemctl disable gitlab-runsvdir.service

-** Implemented with reference to the following site ** [Cat Protocol: Installing Old GitLab](https://protocol.nekono.tokyo/2017/09/01/%E5%8F%A4%E3%81%84gitlab%E3%81%AE%E3%82% A4% E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB /) GitLab: Official Document

Recommended Posts

Build Virtual Box & Vagrant & Centos7 & GitLab
Build Virtual Box & Vagrant & Centos7 & Artifactory
vagrant java build
Set up a CentOS virtual server with Vagrant
Build debug environment for Phalcon + Vagrant + centos + xdebug + phpstorm
Build Growai with Centos7
Build a CentOS 8 virtual environment on your Mac with VirtualBox
Build GitLab / Mattermost with DockerForWindows
Build softether VPN with Centos7.
[Introduction] Build a virtual environment of Vagrant + VirtualBox on Window10 [Environment construction]