Difference between revisions of "GitLab"

From RHS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
=Install=
 
=Install=
see: https://about.gitlab.com/downloads<br />
+
see: https://www.linode.com/docs/applications/development/how-to-install-and-configure-gitlab-on-ubuntu-14-04-trusty-tahr<br />
 
+
=== Upgrade gitlab-shell===
*Install curl, openssh-server, ca-certificates postfix
+
<source lang="bash">
sudo apt-get install curl openssh-server ca-certificates postfix
+
cd /home/git/gitlab-shell
*Add the GitLab package server and install the package
+
sudo -u git -H git fetch
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
+
sudo -u git -H git checkout v1.9.6
sudo apt-get install gitlab-ce
+
</source>
Or select and download
 
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce-XXX.deb/download
 
dpkg -i gitlab-ce-XXX.deb
 
==Configuration==
 
/etc/gitlab/gitlab.rb
 
sudo gitlab-ctl reconfigure
 
*Browse to the hostname and login:
 
Username: root
 
Password: 5iveL!fe
 
* For configuration and troubleshooting options please see the Omnibus GitLab documentation<br />
 
http://doc.gitlab.com/omnibus/
 
 
===Database===
 
===Database===
 
Recomended PostgreSQL<br />
 
Recomended PostgreSQL<br />

Revision as of 15:18, 22 November 2015

Install

see: https://www.linode.com/docs/applications/development/how-to-install-and-configure-gitlab-on-ubuntu-14-04-trusty-tahr

Upgrade gitlab-shell

cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git checkout v1.9.6

Database

Recomended PostgreSQL

# Install the database packages
sudo apt-get install -y postgresql postgresql-client libpq-dev

# Login to PostgreSQL
sudo -u postgres psql -d template1

# Create a user for GitLab
# Do not type the 'template1=#', this is part of the prompt
template1=# CREATE USER git CREATEDB;

# Create the GitLab production database & grant all privileges on database
template1=# CREATE DATABASE gitlabhq_production OWNER git;

# Quit the database session
template1=# \q

# Try connecting to the new database with the new user
sudo -u git -H psql -d gitlabhq_production

# Quit the database session
gitlabhq_production> \q

Default repositorys

git_data_dir "/var/opt/gitlab/git-data"