GDK

GitLab Development Kit Setup in Ubuntu

Table of contents

Install

Create new user

adduser git
visudo
git    ALL=(ALL:ALL) ALL # User privilege specification
su - git

Prerequisites

sudo apt install software-properties-common
sudo add-apt-repository ppa:longsleep/golang-backports
sudo add-apt-repository ppa:git-core/ppa
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
sudo apt install git postgresql postgresql-9.6 postgresql-contrib libpq-dev redis-server libicu-dev cmake g++ libre2-dev libkrb5-dev libsqlite3-dev golang-1.10-go golang-go ed pkg-config graphicsmagick runit libimage-exiftool-perl

Install Node and Yarn

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install -y nodejs yarn

Install RVM

gpg --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable

Note: Exit from Terminal

Install Ruby

rvm install 2.6.3

Install Bundler

gem install bundler -v 1.17.3

Install GDK

gem install gitlab-development-kit

Setup GDK

gdk init gitlab
gdk install gitlab_repo=https://gitlab.com/yo/gitlab-ce.git

Publically Accessible

echo 3000 > port
echo 0.0.0.0 > host
gdk reconfigure

Run the App

gdk run

Update

Start the DB

gdk run db

Update the App

gdk update

Reconfigure the App

gdk reconfigure

Credentials

Username: root
Password: 5iveL!fe