CentOS 7.x gitlab
<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:
- Download the bitnami stack ova file and create VM using CentOS 7.x import ova file based VMs to KVM
- Login into VM console with username bitnami and change console password
- 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
- 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:
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.