Subscribe Us


Breaking

Recent In Voip

Popular

Comments

Recent

Automating Integration & Deployment Using Git, Jenkins and Docker Part 1/ Jenkins Installation

 

Perquisite: -
At least 1 Physical /VM public instance Linux Server .
 Application Required.
1.Jenkins
2.Git/GitHub Account
3.Docker/Swarm
4.Docker Hub Account
In this Tutorial we will be using two google virtual machine.
1.We will start with installing Jenkins server on first host (Jenkins)
For Jenkins to function, you need to install either Java JRE 8 or Java 11. We will move with java 11.
dnf install java-11-openjdk-devel

To verify the installation of Java 11, run the command
 # java --version


Now we will add Jenkins repository.
Since Jenkins is not available in CentOS 8 repositories, therefore we are going to add Jenkins Repository
manually to the system.Begin by adding Jenkins Key as shown.

 # rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
Now append Jenkin’s repository to CentOS 8.

# cd /etc/yum/repos.d/
# curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo



Installing Jenkins on Centos.
 # dnf install jenkins



Once installed, start and verify the status of Jenkins by executing the commands.

# systemctl start jenkins
# systemctl status jenkins


Next, you need to configure the firewall to allow access to port 8080 which is used by Jenkins.
To open the port on the firewall, run the commands.


# firewall-cmd --add-port=8080/tcp --permanent
# firewall-cmd --reload 


Setting Up Jenkins
Open You favourite web browser.


 http://server-IP:8080



Go to server and run the following command.

 cat /var/lib/jenkins/secrets/initialAdminPassword


Copy & paste the password in the Administrator password text field & click ‘Continue ‘.


Click on continue.


Select Install Suggested Plugin.
In the next section, fill out the fields in order to create the First Admin user. After you are done, click on
‘Save and continue Once it Configured Properly. You will get Login Screen.

In the Next part we will move forward with Installing Git and Docker .

0 on: "Automating Integration & Deployment Using Git, Jenkins and Docker Part 1/ Jenkins Installation"