Last active
August 29, 2015 14:22
-
-
Save ssmythe/974250b381a8aa7b1bbb to your computer and use it in GitHub Desktop.
Install Jenkins on Fedora/RHEL/CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run as root | |
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | |
rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key | |
yum -y remove java* | |
yum -y install java-1.7.0-openjdk | |
update-alternatives --auto java | |
# RVM dependencies | |
yum -y install epel-release wget | |
yum -y install gnupg2 patch libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel readline-devel zlib-devel libffi-devel openssl-devel automake libtool bison sqlite-devel | |
mkdir /app | |
chmod 775 /app | |
groupadd jenkins | |
useradd -g jenkins -s /bin/bash -c "Jenkins Server" jenkins | |
mkdir /app/jenkins | |
chown jenkins:jenkins /app/jenkins | |
chmod 700 /app/jenkins | |
mkdir /var/log/jenkins | |
chown jenkins:jenkins /var/log/jenkins | |
chmod 700 /var/log/jenkins | |
yum -y install jenkins | |
sed -i 's:JENKINS_HOME="/var/lib/jenkins":JENKINS_HOME="/app/jenkins":' /etc/sysconfig/jenkins | |
service jenkins start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment