Difference between revisions of "CentOS 7.x gitlab"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb self="gitlab">CentOS_7.x_version_control|Version Control</yambe:breadcrumb>
<yambe:breadcrumb self="gitlab">CentOS_7.x_version_control|Version Control</yambe:breadcrumb>
=CentOS 7.x gitlab=
=CentOS 7.x gitlab=
'''SSH based gitlab access does not works when gitlab is setup in below manner'''


To setup gitlab on CentOS 7.x use bitnami KVM stack available at https://bitnami.com/stack/gitlab/virtual-machine
To setup gitlab on CentOS 7.x use bitnami KVM stack available at https://bitnami.com/stack/gitlab/virtual-machine
Line 12: Line 14:
# Login with newly create admin user.  Change temporary password to desired password.
# Login with newly create admin user.  Change temporary password to desired password.


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.
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:
<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.

Revision as of 03:17, 15 September 2019

<yambe:breadcrumb self="gitlab">CentOS_7.x_version_control|Version Control</yambe:breadcrumb>

CentOS 7.x gitlab

SSH based gitlab access does not works when gitlab is setup in below manner

To setup gitlab on CentOS 7.x use bitnami KVM stack available at https://bitnami.com/stack/gitlab/virtual-machine Steps are:

  1. Download the bitnami stack ova file and create VM using CentOS 7.x import ova file based VMs to KVM
  2. Login into VM console with username bitnami and change console password
  3. 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
  4. Go to admin area /admin in URL or click on spanner icon in menu
  5. Create user with admin privileges
  6. Again edit created user and put temporary password (User would be forced to change it after first login)
  7. 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:

git -c http.sslVerify=false clone https://<server-ip>/<username>/<project-name>.git/

where "-c http.sslVerity=false" disables HTTPS certificate verification.

After this use:

git config http.sslVerify false

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.