Jenkins-Zero-To-Hero README

The project's README from github.com/iam-veeramalla/Jenkins-Zero-To-Hero. As one markdown file: README.md.

Jenkins-Zero-To-Hero

Are you looking forward to learn Jenkins right from Zero(installation) to Hero(Build end to end pipelines)? then you are at the right place.

Installation on EC2 Instance

YouTube Video -> https://www.youtube.com/watch?v=zZfhAXfBvVA&list=RDCMUCnnQ3ybuyFdzvgv2Ky5jnAA&index=1

Screenshot 2023-02-01 at 5 46 14 PM

Install Jenkins, configure Docker as agent, set up cicd, deploy applications to k8s and much more.

AWS EC2 Instance

Screenshot 2023-02-01 at 12 37 45 PM

Install Jenkins.

Pre-Requisites:

Run the below commands to install Java and Jenkins

Install Java

sudo apt update
sudo apt install openjdk-17-jre

Verify Java is Installed

java -version

Now, you can proceed with installing Jenkins

curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
  /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
  https://pkg.jenkins.io/debian binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins

**Note: ** By default, Jenkins will not be accessible to the external world due to the inbound traffic restriction by AWS. Open port 8080 in the inbound traffic rules as show below.

Screenshot 2023-02-01 at 12 42 01 PM

Login to Jenkins using the below URL:

http://:8080 [You can get the ec2-instance-public-ip-address from your AWS EC2 console page]

Note: If you are not interested in allowing All Traffic to your EC2 instance 1. Delete the inbound traffic rule for your instance 2. Edit the inbound traffic rule to only allow custom TCP port 8080

After you login to Jenkins, - Run the command to copy the Jenkins Admin Password - sudo cat /var/lib/jenkins/secrets/initialAdminPassword - Enter the Administrator password

Screenshot 2023-02-01 at 10 56 25 AM

Click on Install suggested plugins

Screenshot 2023-02-01 at 10 58 40 AM

Wait for the Jenkins to Install suggested plugins

Screenshot 2023-02-01 at 10 59 31 AM

Create First Admin User or Skip the step [If you want to use this Jenkins instance for future use-cases as well, better to create admin user]

Screenshot 2023-02-01 at 11 02 09 AM

Jenkins Installation is Successful. You can now starting using the Jenkins

Screenshot 2023-02-01 at 11 14 13 AM

Install the Docker Pipeline plugin in Jenkins:

Screenshot 2023-02-01 at 12 17 02 PM

Wait for the Jenkins to be restarted.

Docker Slave Configuration

Run the below command to Install Docker

sudo apt update
sudo apt install docker.io

Grant Jenkins user and Ubuntu user permission to docker deamon.

sudo su - 
usermod -aG docker jenkins
usermod -aG docker ubuntu
systemctl restart docker

Once you are done with the above steps, it is better to restart Jenkins.

http://<ec2-instance-public-ip>:8080/restart

The docker agent configuration is now successful.

Jenkins-Zero-To-Hero (iam-veeramalla/Jenkins-Zero-To-Hero)

Searching Database…

这是什么?这是一个带你从零到精通 Jenkins 的学习仓库:安装 Jenkins、配置 Docker 作为构建代理、搭建 CI/CD,并以 GitOps 工作流使用 Argo CD 把应用部署到 Kubernetes。
这是一个工具,还是一系列教程?它是一份带分步说明和配套 YouTube 视频的实操教程/指南,本身并不是可安装的工具。
按照这份指南,我该怎么让 Jenkins 跑起来?启动一个 AWS EC2 实例,打开安全组以允许入站流量(例如 TCP 8080),然后在上面安装 Jenkins,并通过网页界面进行配置。
开始之前需要准备什么,一个 AWS 账号吗?你需要一个 AWS 账号来启动 EC2 实例,并在该实例上安装 Docker,让它充当 Jenkins 的构建代理。
安装插件之后需要重启 Jenkins 吗?需要。安装 Docker Pipeline 插件后必须重启 Jenkins,并且还要给 jenkins 和 ubuntu 两个用户都授予 docker 守护进程权限,代理设置才能生效。
这份指南面向谁?面向想要循序渐进学习 Jenkins CI/CD、Docker 代理、Kubernetes 部署以及 Argo CD GitOps 的初中级 DevOps 学习者。
这份指南除了 Jenkins 之外也讲 Kubernetes 部署吗?讲。最终目标包括以 GitOps 工作流使用 Argo CD 把应用部署到 Kubernetes,而不仅仅是搭建 Jenkins。
文字步骤之外还有视频内容吗?有。仓库链接了一个 YouTube 视频,内容涵盖安装 Jenkins、配置 Docker 作为代理以及搭建 CI/CD。
在本教程中,Jenkins 应该运行在哪里?这份指南专门讲解在 AWS EC2 实例上搭建 Jenkins,并在同一台机器上配置安全组和 Docker。
Size
0.2 MB
Stars
10.1K
Updated
CommitMar 12
Age
3y
Commits · 90 Days