<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>configure gitlab on centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/configure-gitlab-on-centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 10 Jan 2020 20:52:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install and Configure GitLab on CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-and-configure-gitlab-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-and-configure-gitlab-on-centos-8-rhel-8/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 10 Jan 2020 20:52:09 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[configure gitlab on centos 8]]></category>
		<category><![CDATA[gitlab on centos 8]]></category>
		<category><![CDATA[how to install gitlab on centos 8]]></category>
		<category><![CDATA[install gitlab on rhel 8]]></category>
		<category><![CDATA[linux gitlab installation]]></category>
		<category><![CDATA[linux unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17064</guid>

					<description><![CDATA[<p>Introduction: GitLab is a powerful Open source platform based on git for accelerated software development &#38; collaboration. GitLab provides various scratch features like Auto DevOps, Kubernetes integration, GitLab Container Registry etc. There are two distinct editions available for GitLab. GitLab Community Edition (CE) -Available for public GiLab Enterprise Edition (EE) -For Enterprises with greater features. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-gitlab-on-centos-8-rhel-8/">How To Install and Configure GitLab on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2><strong>Introduction:</strong></h2>



<p>GitLab is a powerful Open source platform based on git for accelerated software development &amp; collaboration. GitLab provides various scratch features like Auto DevOps, Kubernetes integration, GitLab Container Registry etc. There are two distinct editions available for GitLab.</p>



<ul><li><strong>GitLab Community Edition (CE) -Available for public</strong></li><li><strong>GiLab Enterprise Edition (EE) -For Enterprises with greater features.</strong></li></ul>



<p>In this article you will cover the Installation of GitLab on CentOS 8 / RHEL 8. Just follow the below steps to get started.</p>



<h3><strong>Step 1: Update your system</strong></h3>



<p>Make sure your system is updated or update it by </p>



<pre class="wp-block-verse">sudo yum -y update</pre>



<h3><strong>Step 2: Install Dependencies </strong></h3>



<p>Run the given command to install the Dependencies on your CentOS 8 system.</p>



<pre class="wp-block-verse">sudo yum -y install curl vim policycoreutils python3-policycoreutils</pre>



<p>You can Install Postfix to send mail notifications by</p>



<pre class="wp-block-verse">sudo yum -y install postfix</pre>



<p>Now, after installation start and enable Postfix services.</p>



<pre class="wp-block-verse">sudo systemctl enable postfix<br>sudo systemctl start postfix</pre>



<p>To configure external email relay service after setting up Gitlab check the below:</p>



<p><a href="https://docs.gitlab.com/omnibus/settings/smtp.html">How To configure an external SMTP Server.</a></p>



<h3><strong>Step 3: Adding the GitLab CE Repository</strong></h3>



<p>Add the GitLab Repository for CentOS 8 / RHEL 8 </p>



<pre class="wp-block-verse">sudo vi /etc/yum.repos.d/gitlab-ce.repo</pre>



<p>After it paste the below data into the above file.</p>



<pre class="wp-block-verse">[gitlab-ce]<br> name=gitlab-ce<br> baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/7/$basearch<br> repo_gpgcheck=1<br> gpgcheck=1<br> enabled=1<br> gpgkey=https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey<br>        https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg<br> metadata_expire=300</pre>



<p>Now, save the file &amp; update your RPM packages.</p>



<pre class="wp-block-verse">sudo yum makecache</pre>



<h3><strong>Step 4: Installing GitLab CE on CentOS 8 / RHEL 8</strong></h3>



<p>Run the given command to Install GitLab CE </p>



<pre class="wp-block-verse">EXTERNAL_URL="<a href="http://git.example.com">http://git.example.com</a>" yum install -y gitlab-ce</pre>



<h3><strong>Step 5: Configuring GitLab CE</strong></h3>



<p>After successful installation, move toward configuring GitLab CE that works for our environment. You can find the main configuration file under <strong>/etc/gitlab/gitlab.rb</strong></p>



<pre class="wp-block-verse">sudo vi /etc/gitlab/gitlab.rb</pre>



<p>Now, set up your URL on which GitLab will be reachable:</p>



<pre class="wp-block-verse">external_url '<a href="http://gitlab.example.com">http://gitlab.example.com</a>'</pre>



<p>Save &amp; and run the reconfiguration script</p>



<pre class="wp-block-verse">sudo gitlab-ctl reconfigure</pre>



<p>You will see a similar output upon successful reconfiguration</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="672" height="230" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/gitlab.jpg" alt="" class="wp-image-17154" srcset="https://www.osradar.com/wp-content/uploads/2019/12/gitlab.jpg 672w, https://www.osradar.com/wp-content/uploads/2019/12/gitlab-300x103.jpg 300w" sizes="(max-width: 672px) 100vw, 672px" /></figure></div>



<h3><strong>Step 6: Allow Firewall</strong></h3>



<p>Type the given command to allow firewall access as http, https, and ssh services &amp; reload it.</p>



<pre class="wp-block-verse">sudo firewall-cmd --permanent --add-service={ssh,http,https} --permanent <br>sudo firewall-cmd --reload</pre>



<h3><strong>Step 7: Accessing Gitlab Web Console</strong></h3>



<p>Finish the GitLab installation by visiting <a href="https://osradar.com">http://gitlab.example.com</a>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="615" height="345" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/change-your-password.jpg" alt="" class="wp-image-17155" srcset="https://www.osradar.com/wp-content/uploads/2019/12/change-your-password.jpg 615w, https://www.osradar.com/wp-content/uploads/2019/12/change-your-password-300x168.jpg 300w" sizes="(max-width: 615px) 100vw, 615px" /></figure></div>



<p>Provide password details for <strong>root</strong> and click &#8220;<strong>Change Your Password</strong>&#8220;</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="619" height="358" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/your-pass-successfuly-changes.jpg" alt="" class="wp-image-17156" srcset="https://www.osradar.com/wp-content/uploads/2019/12/your-pass-successfuly-changes.jpg 619w, https://www.osradar.com/wp-content/uploads/2019/12/your-pass-successfuly-changes-300x174.jpg 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure></div>



<p>After it you can provide these details to access GitLab Administration dashboard.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="690" height="406" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/gitlab-dashboard.jpg" alt="" class="wp-image-17157" srcset="https://www.osradar.com/wp-content/uploads/2019/12/gitlab-dashboard.jpg 690w, https://www.osradar.com/wp-content/uploads/2019/12/gitlab-dashboard-300x177.jpg 300w" sizes="(max-width: 690px) 100vw, 690px" /></figure></div>



<h3><strong>Step 8: Disable User Sign Up</strong></h3>



<p>Login as a <strong>root</strong> user </p>



<p>Go to <strong>Settings</strong> page at the bottom left navigation pane and expand the <strong>Sign-up restrictions</strong> section to disable sign up for new users.</p>



<p>Unchecked  the sing-up enabled &amp; save changes</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="415" height="114" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/signup-enablee.jpg" alt="" class="wp-image-17158" srcset="https://www.osradar.com/wp-content/uploads/2019/12/signup-enablee.jpg 415w, https://www.osradar.com/wp-content/uploads/2019/12/signup-enablee-300x82.jpg 300w" sizes="(max-width: 415px) 100vw, 415px" /></figure>



<p>Logout to confirm the changes. Note the changes.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="629" height="203" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/no-signup.jpg" alt="" class="wp-image-17159" srcset="https://www.osradar.com/wp-content/uploads/2019/12/no-signup.jpg 629w, https://www.osradar.com/wp-content/uploads/2019/12/no-signup-300x97.jpg 300w" sizes="(max-width: 629px) 100vw, 629px" /></figure></div>



<h3><strong>Step 9: Secure GitLab with SSL (Recommended)</strong></h3>



<p>As you all know SSL provides you a high security to  stay away from spammers. I recommend to Install SSL on your GitLab server. Follow the below link if you don&#8217;t know to Install SSL.</p>



<p><a href="https://www.osradar.com/?p=17160">How To Secure GitLab server with SSL certificate</a></p>



<h3><strong>Step 10: Enable LDAP authentication (Optional)</strong></h3>



<p>To use LDAP as a primary authentication method, configure GitLab to use an LDAP server such as FreeIPA to authenticate users.</p>



<p><a href="https://www.osradar.com/?p=17162">How To Configure FreeIPA LDAP Authentication</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-gitlab-on-centos-8-rhel-8/">How To Install and Configure GitLab on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-and-configure-gitlab-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
