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
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
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