Skip to content

Commit 4ff752d

Browse files
authored
Add files via upload
1 parent 5dc564e commit 4ff752d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
# Author: Prof Legah
3+
# date: 25/08/2020
4+
# Installing Jenkins on RHEL 7/8, CentOS 7/8 or Amazon Linux OS
5+
# You can execute this script as user-data when launching your EC2 VM.
6+
cd /opt
7+
# 1. Install Java and other pre-requisits.
8+
sudo yum -y install unzip wget tree git
9+
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
10+
sudo yum install jdk-8u131-linux-x64.rpm -y
11+
# 2. Add Jenkins Repository and key
12+
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
13+
sudo cd /etc/yum.repos.d/
14+
sudo curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo
15+
# 3. Install Jenkins
16+
sudo yum -y install jenkins
17+
sudo systemctl start jenkins
18+
sudo systemctl enable jenkins
19+
sudo systemctl status jenkins

0 commit comments

Comments
 (0)