Professional Documents
Culture Documents
Home Resources FREE EBooks QA Testing ! Courses ! Automation ! Types Of Testing ! Tutorials !
Best Open Source DevOps Tools (With Installation And About SoftwareTestingHelp
Configuration)
Helping our community since 2006!
Last Updated: September 13, 2020
Most popular portal for Software
professionals with 100 million+ visits
Steps involved in Installation and Configuration of Open Source DevOps Tools: and 300,000+ followers! You will
absolutely love our tutorials on QA
In our last tutorial, we listed some of the top 10 best DevOps tools in 2018. In this tutorial, I will focus on Testing, Development, Software Tools
the installation and configuration of some of the commonly used OPEN-SOURCE tools in DevOps. and Services Reviews and more!
In our upcoming tutorial on DevOps, we will learn about how Microsoft VSTS and AWS support DevOps
activities.
But not all the organization’s use of commercial tools. Some rely on open source tools for Continuous
Recommended Reading
Integration and Continuous Delivery.
You can consider this tutorial as a cheat sheet and not as a LINUX TRAINING guide. You can keep it handy
when you are trying to install them on Red Hat Linux 7.5.
# yum update -y
Most of the software tools use JDK 8 and above. Download the JDK package in RPM format file using the
wget command. Wget Linux utility helps to download the files from the web. If it is not installed then
follow the instructions below to install it.
# cd /opt/niranjan
# yum install wget
Check this.
You can get the path of RPM file from this URL
# java -version
# git –version
GIT Configuration
Let’s now configure the user name and email id for the GIT repository.
The above information is stored in the .gitconfig file which is in the home directory.
# cd /opt/niranjan/demoproject
# git init
Add some files to the repository and run the below commands.
# git add
In this case, let’s look to download and install Maven 3.5.3 version. Also, note that JDK 8 or 9 is a pre-
requisite to install Maven.
# wget http://www-us.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
Add the bin directory of the newly created directory to the PATH env variable and run the command to
test maven.
# mvn -version
If in case you need to use the other port than 8080 for jenkins then edit the file /etc/sysconfig/jenkins
and modify the parameter JENKINS_PORT to use some other port number.
Launch Jenkins
Once Jenkins service is started, proceed to launch Jenkins by entering the URL
http://<HostnameOrIPAddress>:8089
Enter the password from the file given and click on Continue.
Post this you will be asked to create a ADMIN user id and password.
Note: Since the port used here is 8089 than the default one 8080 make sure that this port is opened on
the firewall or in the AWS security group if installing on AWS Cloud.
To start, use this link to find out the latest stable version of Tomcat 8.x and install using wget.
Copy the tar.gz file location under “Core” which will be as shown below and use it in the wget command.
http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.31/bin/apache-tomcat-8.5.31.tar.gz
Extract the file using the command below into the directory /opt/niranjan/tomcat
After extraction move it to a smaller understandable directory such as /opt/niranjan/tomcat which will be
the final installed directory.
Configure Tomcat
Do the following changes in tomcat-users.xml which are in the conf directory. Ensure to remove
comments <!– and –> which is above and below the lines.
Open the file server.xml and change the connector port to a different value.
# mv bintray-jfrog-artifactory-rpms.repo /etc/yum.repos.d/
# yum install jfrog-artifactory-oss
Start Artifactory
Test Artifactory
http://<HostnameOrIPAddress>:8081/artifactory
# wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
# mysql –version
Configuring MySQL
To configure MySQL we need to run the secure installation which helps us to setup the root password for
MySQL DB operations.
MySQL version 5.7 generates a temporary password in /var/log/mysqld.log which will be used during the
secure installation of MySQL.
# mysql_secure_installation
Proceed further with the other options and setup as per the need. Once completed login to MySQL as
# mysql –u root -p
Since we have seen how to install MySQL in the previous section, login and run the following SQL
commands.
Install SonarQube
Configure SonarQube
Open the sonar properties file and enter the database details to connect with.
# vi /opt/sonar/conf/sonar.properties
sonar.jdbc.username=sonaruser
sonar.jdbc.password=sonaruser
Scroll down to the MySQL section and update it as below. Add the hostname or IP address. Save and exit
the file once done.
Start SonarQube
# docker –version
# docker images
Firstly enable the Extra Packages repository which contains add-on software’s for linux and install ansible
as a root user.
# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# ansible –version
Configuration of Ansible
Ansible configuration are managed in a file called ansible.cfg. To enable the hosts, uncomment the
inventory value.
# vi /etc/ansible/ansible.cfg
All the required hosts to connect to and manage can be added to the required host groups in the ansible
hosts file.
# vi /etc/ansible/hosts
Post the ansible configuration and inventory file setup you will also need to setup password less SSH key
authentication which enables the client machines or nodes to be connected from the master and vice
versa.
Before performing the above or below configuration, it is better to have a common user across all the
servers and the user be added to the /etc/sudoers file to ensure that the tasks which will be run through
ansible have admin or root privileges.
So in a nutshell, control machine or nodes can be connected through SSH using the below 2 commands.
The below commands have to be run on both the master and client machines.
Summary
In this tutorial, we saw how to install the most commonly used open-source tools in any DevOps
environment.
As DevOps talks about the speed of delivery, I am sure that this tutorial or cheat sheet should help all of
your DevOps enthusiasts to quickly get started on installing these tools in your environment and help the
entire team/organization to automate the Continuous Integration and Continuous Delivery process.
Watch out our upcoming tutorial to know more about Frequently asked DevOps interview questions and
answers.
Recommended Reading
Most Important QA Testing Tools To Watch Out In 2020 [ULTIMATE LIST]
Top AWS DevOps Tools for Cloud Build and Deployment
Configuration Management in DevOps Practices
Source Control or Version Control in DevOps (Video Tutorial Part 2 - Block 2)
Release Management in DevOps
Top 10 Best DevOps Tools In 2020 (Latest Ranking)
TOP 40 Static Code Analysis Tools (Best Source Code Analysis Tools)
Top 4 Open Source Security Testing Tools to Test Web Application