Skip to content

Instantly share code, notes, and snippets.

@relaxdiego
Created March 16, 2012 03:20
Show Gist options
  • Save relaxdiego/2048332 to your computer and use it in GitHub Desktop.
Save relaxdiego/2048332 to your computer and use it in GitHub Desktop.
Installing Release Dashboard to CentOS 5
yum update
yum groupinstall ‘Development Tools’
yum install readline-devel zlib zlib-devel openssl-devel perl cpio expat-devel gettext-devel
mkdir src
cd src
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}
autoconf
./configure --with-curl=/usr/local
make
make install
cp contrib/completion/git-completion.bash ~/.gitcompletion.bash
# Add the following to ~/.bash_profile
#
# RED="\[\033[0;31m\]"
# YELLOW="\[\033[0;33m\]"
# GREEN="\[\033[0;32m\]"
# NORMAL="\[\033[m\]"
# source ~/.git-completion.bash
# PS1="\033[0;31mrelease-dashboard $GREEN\w$YELLOW\$(__git_ps1)$NORMAL $ "
src ~/.bash_profile
# uninstall ruby and all packages that depend on it
rpm -e ruby-libs-1.8.7.249-3 ruby-devel-1.8.7.249-3 ruby-1.8.7.249-3 ruby-rdoc-1.8.7.249-3 rubygems-1.3.6-3 ruby-libs-1.8.5-5.el5_4.8 ruby-irb-1.8.7.249-3
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
tar xzvf ruby-1.9.2-p0.tar.gz
cd ruby-1.9.2-p0
./configure
make
make install
gem install rails
yum install httpd
/etc/init.d/httpd start
chkconfig httpd on
yum install gcc-c++ curl-devel zlib-devel httpd-devel apr-devel apr-util-devel
gem install passenger
passenger-install-apache2-module
# Append to /etc/httpd/conf/httpd.conf :
#
# LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
# PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.11
# PassengerRuby /usr/local/bin/ruby
#
# <VirtualHost *:80>
# ServerName fleximage-m1-large-0220-88-ec3015.la-1-12.morphcloud.net/
# DocumentRoot /var/www/dashboard/current/public
# PassengerSpawnMethod smart
# PassengerUseGlobalQueue on
# PassengerBufferResponse on
# <Directory /var/www/dashboard/current/public>
# AllowOverride all
# RackEnv production
# Options -MultiViews
# </Directory>
# </VirtualHost>
# You have two ways to install the release dashboard:
# a. Deploy with Capistrano. Copy config/deploy.rb.example and edit it accordingly.
# b. Deploy manually using the steps below
# Copy the app to /var/www/dashboard/current
chgroup -R apache /var/www/dashboard/current
chmod g+w /var/www/dashboard/current
cd /var/www/dashboard
script/setup
touch tmp/restart.txt
# Some extra steps if you can't ping your jira server
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment