Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 2.09 KB

rhel7-installation.adoc

File metadata and controls

64 lines (51 loc) · 2.09 KB

RHEL 7 installation

Reserve and register the system

Get or reserve system via reservation tool of your choice. For example via OpenStack or Beaker.

Once the system is available to you, make sure it’s reserved for sufficient time.

Manual machine registration:

subscription-manager register --username=your@email.xyz
subscription-manager list --available  ## Find appropriate SKU
subscription-manager attach --pool=selected-sku-hash

Update system and install tools

yum update -y
yum install -y java-1.8.0-openjdk-devel java-11-openjdk-devel mc vim maven git
yum install -y glibc-devel zlib-devel gdb gcc libstdc++-static

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y htop nload links

yum install -y pcp pcp-webapi pcp-webapp-vector
systemctl enable pmcd && systemctl start pmcd
systemctl enable pmwebd && systemctl start pmwebd

subscription-manager repos --enable=rhel-7-server-extras-rpms
yum install -y docker device-mapper-libs device-mapper-event-libs
systemctl enable docker.service && systemctl start docker.service
systemctl status docker.service

Jenkins installation

Initial Jenkins installation steps:

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo && rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum -y install jenkins
sed -i "s/8080/8180/g" /etc/sysconfig/jenkins
sed -i "s/JENKINS_JAVA_OPTIONS=\"-Djava.awt.headless=true\"/JENKINS_JAVA_OPTIONS=\"-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP=\"/g" /etc/sysconfig/jenkins

systemctl enable jenkins && systemctl start jenkins

grep -A 5 password /var/log/jenkins/jenkins.log
open http://your_server:8180/ - paste secret + Install suggested plugins
tail -f /var/log/jenkins/jenkins.log
ls -l /var/lib/jenkins

Jenkins and Docker:

groupadd docker
chown root:docker /var/run/docker.sock
usermod -aG docker jenkins

su - jenkins -s/bin/bash docker run hello-world
systemctl restart jenkins