Skip to content

Commit 4bff809

Browse files
authored
Create READme.md
1 parent 4ff752d commit 4bff809

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

JENKINS-INSTALLATION/READme.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# **<span style="color:green">Landmark Technologies, Ontario, Canada.</span>**
2+
### **<span style="color:green">Contacts: +1437 215 2483<br> WebSite : <http://mylandmarktech.com/></span>**
3+
### **Email: [email protected]**
4+
5+
6+
7+
## Jenkins Installation And Setup In AWS EC2 Redhat Instnace.
8+
##### Prerequisite
9+
+ AWS Acccount.
10+
+ Create Redhat EC2 t2.medium Instance with 4GB RAM.
11+
+ Create Security Group and open Required ports.
12+
+ 8080 got Jenkins, ..etc
13+
+ Attach Security Group to EC2 Instance.
14+
+ Install java openJDK 1.8+ for SonarQube version 7.8
15+
16+
### Install Java JDK 1.8+ as Jenkins pre-requisit
17+
### Install other softwares - git, unzip and wget
18+
19+
``` sh
20+
hostname cicd
21+
sudo yum -y install unzip wget tree git
22+
sudo wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
23+
sudo yum install jdk-8u131-linux-x64.rpm -y
24+
```
25+
### Add Jenkins Repository and key
26+
```sh
27+
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
28+
cd /etc/yum.repos.d/
29+
sudo curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo
30+
```
31+
32+
## Install Jenkins
33+
```sh
34+
sudo yum -y install jenkins --nobest
35+
```
36+
# start Jenkins service and verify Jenkins is running
37+
```sh
38+
sudo systemctl start jenkins
39+
sudo systemctl enable jenkins
40+
sudo systemctl status jenkins
41+
```
42+
# Access Jenkins from the browser
43+
```sh
44+
public-ip:8080
45+
```
46+
# get jenkins initial admin password
47+
```sh
48+
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
49+
```
50+

0 commit comments

Comments
 (0)