• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Installing Gitlab on Rackspace Cloud Server

By Abhishek Ghosh April 18, 2013 1:35 am Updated on April 18, 2013

Installing Gitlab on Rackspace Cloud Server

Advertisement

Installing Gitlab on Rackspace Cloud Server is the first text guide for our series on Gitlab originated from the article – Options of Installing Gitlab for Code Hosting. We provided the idea on how to calculate the cost of hosting on Cloud platform – its indispensable , specially if you are a new user. Installing Gitlab on Rackspace Cloud Server is a bit complex if you are habituated to install the CMS like Drupal, Joomla! or blogging softwares like WordPress – we basically configure them as LAMP Server.

 

Introduction for Installing Gitlab on Rackspace Cloud Server

 

If you are new to Rackspace Cloud Control Panel or this website, please visit my YouTube profile to check the list to find any guide video on Rackspace Cloud Server. The beginning, that means login; creating a server is better shown on a video than in text. Obviously, we will upload the video of Installing Gitlab on Rackspace Cloud Server too in future. Usually we write the text guide with all commands as the leading article and on the Video Guide, the explanations are written.

 

Installing Gitlab on Rackspace Cloud Server : Steps

 

We are using a Mac with iTerm2 for SSH tunneling. If you want to install some SSL certificate on your server, like for experimentation, you can follow our guide on Installing Free SSL Certificate for Rackspace Cloud Server. That part plus adding domain name on Rackspace Cloud Server. This is unmanaged server setup. Its unmanaged that is why the guide is. You will be billed around a dollar for running for few hours to test. To “Stop Billing”, you have to take the full server’s backup and delete the instance. There is no “pause billing” kind of button still date in server industry (I hope there was).

Advertisement

---

This guide does not include Redis server inclusion. It is purely simple setup.

 

First install sudo :

 

Vim
1
apt-get install sudo

 

Then install vim :

 

Vim
1
sudo apt-get install -y vim

 

Please see this previous guide. This is specially for Windows users and never used Linux users to get an idea what we are doing. We are using the latest Debian 6.0 version. We need to update and edit the sources.list file. Reference can be found in these places :

 

Vim
1
http://www.mayin.org/ajayshah/COMPUTING/debian-principles.html

Vim
1
http://www.debian.org/releases/stable/

 

Run this command :

 

Vim
1
sudo nano /etc/apt/sources.list

 

Uncomment the sources which are commented out. It is somewhat like that linked guide above.

Run update and upgrade :

 

Vim
1
apt-get update

Vim
1
apt-get upgrade

 

It is better to go to the control panel (of Rackspace) and restart the server. Now login through SSH again and install vim :

 

Vim
1
sudo apt-get install -y vim

Run the commands to install all the components :

 

Vim
1
sudo apt-get install -y build-essential zlib1g-dev

Vim
1
sudo apt-get install -y libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev

Vim
1
sudo apt-get install -y libffi-dev curl git-core

Vim
1
sudo apt-get install -y  openssh-server redis-server postfix checkinstall

Vim
1
sudo apt-get install -y  libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev

 

You can combine the commands. I have shown separately so that you can notice that this is a setup where open ssh ans Redis are getting installed. Python needs to be 2.7 :

 

Vim
1
sudo apt-get install python2.7

 

You can install latest Python too :

 

Vim
1
sudo apt-get install python

 

In official guide they have symlinked Python’s two versions :

 

Vim
1
sudo ln -s /usr/bin/python /usr/bin/python2

 

Depending on the build, you might get error; then you have to symlink.

 

You have to install Ruby. Reference can be found on official Debian’s Wiki :

 

Vim
1
http://wiki.debian.org/Ruby

 

First go to tmp folder :

 

Vim
1
cd /tmp

 

create a directory named ruby :

 

Vim
1
mkdir ruby

 

Either wget or curl from Ruby’s repo :

 

Vim
1
http://ftp.ruby-lang.org/pub/ruby/

 

For example this tar ball :

 

Vim
1
http://ftp.ruby-lang.org/pub/ruby/ruby-1.9.3-rc1.tar.gz

 

Uncompress it and cd to that named folder. Run these :

 

Vim
1
./configure

Vim
1
make sudo

Vim
1
make install

Vim
1
sudo gem install bundler

 

Now, the work begins for Gitlab :

 

Vim
1
sudo adduser --disabled-login --gecos 'GitLab' git

 

The next commands are for setup of the Gitlab Shell, I have followed the official guide :

 

Vim
1
sudo su git

Vim
1
cd /home/git

Vim
1
git clone https://github.com/gitlabhq/gitlab-shell.git cd gitlab-shell

Vim
1
git checkout v1.1.0 git checkout -b v1.1.0

Vim
1
cp config.yml.example config.yml

 

You need a domain name. Else you will face terrific issues to configure :

 

Vim
1
vim config.yml

Vim
1
./bin/install

 

This is why I pointed you before towards that old domain adding guide.

 

We can use Rackspace Cloud’s Database as a Service (MySQL) and login there as root from command line :

 

Vim
1
mysql -u root -p

 

Vim
1
mysql&gt; CREATE USER '<span style="color: #ff0000;">gitlab</span>'@'<span style="color: #ff0000;">ipaddress</span>' IDENTIFIED BY '$<span style="color: #ff0000;">password</span>';

 

Red fonts are with variable values.

 

Vim
1
mysql&gt; CREATE DATABASE IF NOT EXISTS `<span style="color: #ff0000;">gitlabhq_production</span>`

Vim
1
DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;

 

The above and below two commands are of one line each. I broken it for WordPress’s issue.

 

Vim
1
mysql&gt; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX,

Vim
1
ALTER ON `<span style="color: #ff0000;">gitlabhq_production</span>`.* TO '<span style="color: #ff0000;">gitlab</span>'@'ipaddress';

 

Now go to git’s home :

 

Vim
1
cd /home/git

 

Installing Gitlab on Rackspace Cloud Server

 
Now you can follow their official guide from here :

 

Vim
1
https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md#clone-the-source

 

Do not read the SSH guide first. In our case, depending on the cert, the changes will be a bit different. Change according to the changes. Actually changing the IP works.

This is Installing Gitlab on Rackspace Cloud Server guide. There are few differences with the default official one. Gitlab installation part is same. I said at the beginning – its not WordPress! It will take time. But, obviously its less costly way :
 

Vim
1
http://www.gitlab.com/cloud/

 

Clone one copy of all softwares related to Gitlab and create a optical disk. We have seen many open source projects to go free to full paid only options. They simply deletes all the repo from everywhere, the .org point towards the .com. This is a new model, I call it “Open Source as a Service” – when free contributions are not needed, close it. Debian, CentOS, WordPress – these are kind of grand fathers and has no such parallel models.

 
Abhishek-Ghosh

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Installing Gitlab on Rackspace Cloud Server

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Install GitLab on Ubuntu on Nginx Subdirectory (HP Cloud)

    Lot of Conditions – Install GitLab on Ubuntu on Nginx Subdirectory HP Cloud. It is possible to install Gitlab in Subdirectory on Nginx but is Complicated.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • Installing WordPress on Rackspace Cloud Server with Cloud Database

    Installing WordPress on Rackspace Cloud Server with Cloud Database can give you a good performance with scalable and economically best solution. Simple Guide.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy