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

КОМЕНТАРІ • 18

  • @balajigudiwada6082
    @balajigudiwada6082 27 днів тому

    Awesome explanation boss.. very helpful

  • @meghagoel5560
    @meghagoel5560 8 місяців тому +1

    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👍

  • @user-en8zq1uf6o
    @user-en8zq1uf6o 8 місяців тому +1

    Fabulous Video, Very Good Detailed Explanation Sir. Well done👍

  • @sonamagarwal3113
    @sonamagarwal3113 7 місяців тому +1

    Excellent Explaination, well done👌👍

  • @pramodagarwal3361
    @pramodagarwal3361 8 місяців тому +1

    Wonderful Explanation. Thanks for putting such efforts. Really Appreciating the way you are explaining CICD pipeline concepts.😊

  • @samipdaveyt
    @samipdaveyt 8 місяців тому +1

    Nice explain bro.

  • @samipdaveyt
    @samipdaveyt 8 місяців тому +1

    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

    • @exploredevops
      @exploredevops  8 місяців тому

      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.

    • @samipdaveyt
      @samipdaveyt 8 місяців тому +1

      @@exploredevops yes ihave seen that on same day, really appreciate that verry deep explaination on each and every tools. thank you again

    • @exploredevops
      @exploredevops  8 місяців тому

      @@samipdaveyt You are most welcome.

  • @user-xd4nu6ym8x
    @user-xd4nu6ym8x 8 місяців тому +1

    Excellent Video sir plz make in hindi Version

    • @exploredevops
      @exploredevops  8 місяців тому +1

      Yes sure will do the same.

    • @fredokereke9608
      @fredokereke9608 7 місяців тому

      We are english global learners@@exploredevops