Complete CI/CD Pipeline - Jenkins Container, SonarQube Container, Docker, Trivy, AWS ECR, ECS & ALB

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 19

  • @pratikmiku
    @pratikmiku 3 หลายเดือนก่อน +3

    Terrific Step-by-step CICD project. Keep up the good work...
    Docker connect and pinging other container trick was new to me, thanks for that...

    • @iQuantConsult
      @iQuantConsult  3 หลายเดือนก่อน +3

      Thanks man. Glad it is helpful!

  • @godwinrurio9060
    @godwinrurio9060 2 หลายเดือนก่อน +2

    This channel deserve more subscribers. Thanks a lot brother!

    • @iQuantConsult
      @iQuantConsult  2 หลายเดือนก่อน +1

      I appreciate it Godwin. Please feel free to share the channel with others. 👍

  • @AlwalaManoj-w5b
    @AlwalaManoj-w5b 2 หลายเดือนก่อน +3

    you need to show everything from the scratch man, i stuck over after you started the commands @2:21 in the terminal. Thank you.

    • @iQuantConsult
      @iQuantConsult  2 หลายเดือนก่อน +2

      @@AlwalaManoj-w5b okay, I will do that. First, clone the repository from GitHub. The link is in the description. Let me know the specific issue you are having and I’ll guide you.

    • @iQuantConsult
      @iQuantConsult  2 หลายเดือนก่อน +3

      Okay. First, make sure you have docker installed on your machine, The rest follows from there. Let me know the issues you are having.

  • @valerydolce
    @valerydolce 18 วันที่ผ่านมา +1

    Great video!!!
    There are some concerns I wanted to point out if this can help others who are reproducing the ab.
    1. Building the Docker Image.
    What was the purpose of creating a repo in Docker Hub if we were not pushing the image to it? Isn't the ECR playing the docker hub role here. Doing this created a confusion with the "JOB_NAME_NOW" variable and the "ECR_RGISTRY" variables which you changed back and forth later on. i think creating the ECR registry was enough.
    2. Deploying the container to ECS.
    When you deploy the container to ECS for the first time it works. But, when you deploy a new build, it doesn't replace the current container. Per my research I found that one needs to do a blue/green deployment.
    Automating is good, but would be better if the release path is automated as well.
    3. Log in to ECR.
    You created a global credential in Jenkins to login to ECR but did not use it, and, I wonder how that worked for you as it failed on my end. I had to use the pipeline syntax to integrate the login script, see below.
    stage('Login to AWS ECR') {
    steps {
    withCredentials([aws(accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'awscreds', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) {
    //command was copied from AWS ECR object created (View push commands)
    sh """
    aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${ECR_REGISTRY}
    """
    }
    }
    }
    Thanks again for this awesome demo !

    • @iQuantConsult
      @iQuantConsult  17 วันที่ผ่านมา

      1. Regarding the repo in DockerHub, I started to do that but changed my mind in the middle of the project to use ECR instead.
      2. Yes, that's a good idea. I will remember to include that next time.
      3. I configured AWS on the Jenkins Container itself. i.e., "aws configure" on the Jenkins container terminal worked globally.
      Your way is great, too. "Your way" is actually how I do it regularly on the job.
      This was more of a beginner video, so I didn't wanna automate too much. I will do an automated version of that video in the future.
      But overall, great job.
      Love to see it!!!

  • @kondemahesh-il6fz
    @kondemahesh-il6fz 2 หลายเดือนก่อน +2

    sir wonderful explanation, please continue to deploy on ecs with Jenkins pipeline.
    include steps to configure ECS with Jenkins
    and automate deploy on ECS with Jenkins

    • @iQuantConsult
      @iQuantConsult  2 หลายเดือนก่อน +1

      @@kondemahesh-il6fz thank you. Sure, I’ll keep ‘em coming. Pls stay tuned!

  • @Paul-Maven
    @Paul-Maven 3 หลายเดือนก่อน +3

    Thanks!

    • @iQuantConsult
      @iQuantConsult  3 หลายเดือนก่อน +2

      You're welcome Paul

  • @rizqinrifai
    @rizqinrifai หลายเดือนก่อน +2

    hi sir. i have issue. i using jenkins host and sonarqube (docker). but i have a issue (17:34:00 09:34:00.215 ERROR You're not authorized to analyze this project or the project doesn't exist on SonarQube and you're not authorized to create it. Please contact an administrator.)

    • @iQuantConsult
      @iQuantConsult  หลายเดือนก่อน +1

      @rizqinrifai Is your Jenkins also running in a docker container or it's running on a VM?

  • @ShubahmKumarSahu
    @ShubahmKumarSahu 3 หลายเดือนก่อน +2

    its very good and informative videos thanks. can you inform me how you install docker and Jenkins because i am beginner and how you change hostname and pre start activity , thank you again for this CICD Projects

    • @iQuantConsult
      @iQuantConsult  3 หลายเดือนก่อน +2

      Hi, @Shubahm_jimi Thank you. To install docker on your computer, please watch this video on my channel of how to do that: th-cam.com/video/NQN_t6-4Frk/w-d-xo.htmlsi=I9P7s-azEGXhpzrx. I setup Jenkins using a container and the command I used for that can be found in the video at 1:50. Or you can refer to this video I did on the same thing from scratch: th-cam.com/video/bPyfL4ENZY4/w-d-xo.htmlsi=iJs-zfM3jRBxCaar
      That should help with starting and following the project. No need to change hostname in this project but if you want to, use the command:
      sudo hostnamectl current-hostname new-hostname. Let me know if you have any questions and stick around for more contents.

    • @ShubahmKumarSahu
      @ShubahmKumarSahu 3 หลายเดือนก่อน +2

      @@iQuantConsult Thank you So much

    • @iQuantConsult
      @iQuantConsult  3 หลายเดือนก่อน +2

      @@ShubahmKumarSahu You are welcome