Mega thread of DevOps tools on RHEL
Create RHEL VM in Azure using Terraform
https://github.com/boorla99/CTC-AKS/tree/dev_rhel
Install docker
- sudo yum install -y yum-utils
- sudo yum install -y yum-utils device-mapper-persistent-data lvm2
- sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- sudo yum install docker-ce
- sudo systemctl enable docker.service
- sudo systemctl start docker.service
- sudo systemctl status docker.service
- IP a list docker0
- sudo chmod 666 /var/run/docker.sock
- docker run hello-world
Install git
yum update -y && yum install git -y
install docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
To remove all docker images :
docker images | awk '{print $3}' | xargs docker rmi -f
when connecting from outside of VPC make sure HTTP and custom TCP ports are open ( as shown below)
in real-time your administrator restricts this range with company CIDR
chronological order
- sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
- sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
- sudo yum install jenkins java-1.8.0-openjdk –y
- sudo systemctl start jenkins
- sudo systemctl enable jenkins
- sudo systemctl status jenkins
- firewall-cmd --zone=public --add-port=8080/tcp --permanent
- firewall-cmd --zone=public --add-service=http --permanent
- firewall-cmd --reload
Install Sonarqube on RHEL:
- wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.9.9.56886.zip
- unzip sonarqube-8.9.9.56886.zip
- useradd sonaradmin
- chown -R sonaradmin:sonaradmin sonarqube-8.9.9.56886
how to install PostgreSQL :
- sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf -qy module disable postgresql
sudo dnf -y install postgresql14 postgresql14-server
sudo /usr/pgsql-14/bin/postgresql-14-setup initdb
sudo systemctl start postgresql-14
sudo systemctl status postgresql-14
sudo passwd postgres
createuser sonar
psql
ALTER USER sonar WITH ENCRYPTED password 'sonar';
CREATE DATABASE sonarqube OWNER sonar;
grant all privileges on sonarqube to sonar;
\q
exit
netstat -tulpn
java 11 is pre-req to install sonarqube
login as root : sudo su -
yum list | grep openjdk
How to install nexus on rhel :
No comments: