Live End to End Industry Ready Jenkins Maven Nexus SonarQube Sample Application CICD Pipeline
Вставка
- Опубліковано 10 вер 2024
- Live End to End Industry Ready Jenkins Maven Nexus SonarQube Sample Application CICD Pipeline
Jenkins+ Maven +Nexus +SonarQube+ Sample Application
Jenkins Declarative CICD Pipeline
Github
Maven
Nexus
SonarQube
Apache Tomcat
How to install nexus on ubuntu
How to install nexus on linux
How to install sonarqube on ubuntu
How to install sonarqube on linux
code analysis
code review
artifacts upload
How to install maven on ubuntu
How to install apache tomcat on ubuntu linux
----------------------------------------
Nexus installation Steps
----------------------------------------
sudo apt-get update
sudo apt install openjdk-8-jre-headless
cd /opt
sudo wget download.sonat...
sudo tar -zxvf latest-unix.tar.gz
sudo mv /opt/nexus-3.62.0-01 /opt/nexus
sudo adduser nexus
provide password and enter
sudo chmod 755 /etc/sudoers
sudo vi /etc/sudoers
make this entry in file
nexus ALL=(ALL) NOPASSWD:ALL
sudo chown -R nexus:nexus /opt/nexus
sudo chown -R nexus:nexus /opt/sonatype-work
sudo vi /opt/nexus/bin/nexus.rc
uncomment entry and place "nexus" in double quote
sudo vi /etc/systemd/system/nexus.service
---------------------------------------------------------------------------------
[Unit]
Description=nexus service
After=network.target
[Service]
Type=forking
LimitNOFILE=65536
ExecStart=/opt/nexus/bin/nexus start
ExecStop=/opt/nexus/bin/nexus stop
User=nexus
Restart=on-abort
[Install]
WantedBy=multi-user.target
--------------------------------------------------------------------------------
sudo systemctl start nexus
----------------------------------------------------------
SONARQUBE INSTALLATION Steps
----------------------------------------------------------
sudo vi /etc/sysctl.conf
--------------------------------------
ADD FOLLOWING LINES AND SAVE WITH :WQ
--------------------------------------
vm.max_map_count=262144
fs.file-max=65536
----------------
VERIFY ENTRIES
----------------
sudo sysctl -p
------------------------------------
EXECUTE UPDATE AND UPGRADE COMMANDS
------------------------------------
sudo apt update
sudo apt upgrade
-----------------------
INSTALL DOCKER
-----------------------
sudo apt install docker.io
docker --version
-------------------------
INSTALL DOCKER COMPOSE
-------------------------
sudo apt install docker-compose -y
--------------------------------
CREATE DOCKER COMPOSE FILE
--------------------------------
sudo vi docker-compose.yml
--------------------------------------------------------------------
ADD FOLLOWING LINES TO DOCKER COMPOSE FILE AND SAVE WITH :WQ COMMAND
--------------------------------------------------------------------
version: "3"
services:
sonarqube:
image: sonarqube:community
restart: unless-stopped
depends_on:
- db
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
ports:
- "9000:9000"
db:
image: postgres:12
restart: unless-stopped
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
volumes:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs:
postgresql:
postgresql_data:
------------------------------
RUN DOCKER COMPOSE COMMAND
------------------------------
sudo docker-compose up -d
------------------------------------------------------
MONITOR LOGS UNTILL YOU FIND SONARQUBE IS OPERATIONAL
-------------------------------------------------------
sudo docker-compose logs --follow
Awesome explanation boss.. very helpful
Excellent Video, I was looking for some sample application example having Jenkins CICD pipeline and I got this video. Thanks for sharing end to end example of CICD pipeline👍
Thanks for your feedback.
Fabulous Video, Very Good Detailed Explanation Sir. Well done👍
Thanks for your feedback.
Excellent Explaination, well done👌👍
Thanks for your feedback.
Wonderful Explanation. Thanks for putting such efforts. Really Appreciating the way you are explaining CICD pipeline concepts.😊
Thanks for your feedback.
Nice explain bro.
Thanks for your feedback.
i recently have faced few interview and they ask such question like how you connect windows jenkins server through ec2 if possible create video on creating node groups and second video on multi branch pipeline setup that is many time asked question
Yes sure, I have created videos related to windows slave in my Jenkins playlist where I am connecting azure VM to windows please check if they can help you.
@@exploredevops yes ihave seen that on same day, really appreciate that verry deep explaination on each and every tools. thank you again
@@samipdaveyt You are most welcome.
Excellent Video sir plz make in hindi Version
Yes sure will do the same.
We are english global learners@@exploredevops