@@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.
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 !
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!!!
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
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.)
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
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.
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...
Thanks man. Glad it is helpful!
This channel deserve more subscribers. Thanks a lot brother!
I appreciate it Godwin. Please feel free to share the channel with others. 👍
you need to show everything from the scratch man, i stuck over after you started the commands @2:21 in the terminal. Thank you.
@@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.
Okay. First, make sure you have docker installed on your machine, The rest follows from there. Let me know the issues you are having.
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 !
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!!!
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
@@kondemahesh-il6fz thank you. Sure, I’ll keep ‘em coming. Pls stay tuned!
Thanks!
You're welcome Paul
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.)
@rizqinrifai Is your Jenkins also running in a docker container or it's running on a VM?
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
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.
@@iQuantConsult Thank you So much
@@ShubahmKumarSahu You are welcome