Skip to content

Instantly share code, notes, and snippets.

@chicks
Last active December 31, 2015 13:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chicks/7994589 to your computer and use it in GitHub Desktop.
Save chicks/7994589 to your computer and use it in GitHub Desktop.
Sugar Development with Jenkins CI and GitHub (CentOS 6.5)
# Install stuff we need to build git
sudo yum groupinstall "Development Tools"
sudo yum install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel
# Download, unpack, prep
cd ~
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-master
# Build
make configure
./configure --prefix=/usr/local
make all doc
sudo make install install-doc install-html
# Make sure we're using a compatible java
yum remove java
yum install java-1.6.0-openjdk wget
# Install Jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
# Enable Jenkins at boot, and start it up
chkconfig jenkins on
service jenkins start
# Install a compiler and curl
sudo yum groupinstall "Development Tools"
# Install RVM
sudo yum install curl
curl -L get.rvm.io | bash -s stable
# Add root to rvm group
vi /etc/group
# Logout
exit
# Login and check rvm
rvm info
# Install Ruby 1.9.3
rvm install 1.9.3
# Install Vagrant
sudo gem install vagrant
# Install VirtualBox Repo
sudo curl http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo > /etc/yum.repos.d/virtualbox.repo
# Install VirtualBox
sudo yum install VirtualBox-4.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment