Difference between revisions of "CentOS 7.x gitlab"

From Notes_Wiki
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb self="gitlab">CentOS_7.x_version_control|Version Control</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x DevOps|DevOps]] > [[CentOS 7.x version control|Version Control]] > [[CentOS 7.x gitlab|gitlab]]
=CentOS 7.x gitlab=


'''SSH based gitlab access does not works when gitlab is setup in below manner'''
'''There are more updated articles on this at [[Rocky 8.x gitlab]]'''


To setup gitlab on CentOS 7.x use bitnami KVM stack available at https://bitnami.com/stack/gitlab/virtual-machine
*[[CentOS 7.x gitlab appliance import]]
Steps are:
*[[CentOS 7.x gitlab on lxc container]]
# Download the bitnami stack ova file and create VM using [[CentOS 7.x import ova file based VMs to KVM]]
*[[CentOS 7.x gitlab on VM or phyical machine]]
# Login into VM console with username bitnami and change console password
*[[CentOS 7.x gitlab lets encrypt certificate renewal]]
# Login into bitnami web UI http://<IP> using username root and password displayed on VM console.  Same can be seen in file bitnami_credentials in home folder of bitnami user at any time
*[[CentOS 7.x gitlab update]]
# Go to admin area /admin in URL or click on spanner icon in menu
# Create user with admin privileges
# Again edit created user and put temporary password (User would be forced to change it after first login)
# Login with newly create admin user.  Change temporary password to desired password.


After this create project and optionally initialize git repository.  Note that since certificate is self-signed for cloning use:
<pre>
git -c http.sslVerify=false clone https://<server-ip>/<username>/<project-name>.git/
</pre>
where "-c http.sslVerity=false" disables HTTPS certificate verification. 


After this use:
'''There are older articles on this at [[Gitlab]]'''
<pre>
git config http.sslVerify false
</pre>
to disable certificate verification for this repository.
https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate


Other option is to install gitlab in lxc container using older steps such as [[Gitlab installation on OpenVZ container]] These have not been tried with lxc recently.
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x DevOps|DevOps]] > [[CentOS 7.x version control|Version Control]] > [[CentOS 7.x gitlab|gitlab]]

Latest revision as of 04:34, 20 December 2022