No video

DevOps Project: Build Dockerfile , create image and run container | Git, GitHub, Jenkins & Docker

  Рет қаралды 13,327

Ranjit Swain

Ranjit Swain

Күн бұрын

DevOps Project: Build Dockerfile and run container out of the image | Git, GitHub, Jenkins and Docker | CI/CD automation with Jenkins.
Build the Dockerfile, create image and deploy the application into the container.
The application used in this project is available in my GitHub Repo, you can clone the repo and start working.
Repo:
github.com/ran...
#Jenkins #CI #CD #AWS #EC2 #Automation #DevOps #Docker #Container
SUBSCRIBE my channel:
/ ranjitswain
View my other videos:👇
AWS EC2 : • AWS Tutorial : EC2 Ins...
EC2 WindowsVM : • AWS Tutorial : EC2 Win...
EC2 LinuxVM : • AWS Tutorial : Working...
AWS S3 : • AWS Tutorial: S3 - Sim...
Amazon DynamoDB : • AWS DynamoDB Tutorial ...
AWS IAM : • AWS Tutorial : IAM | A...
Project on DevOps : • Project on DevOps - Pa...
Automation - DB Backup on S3 : • MYSQL Database Backup ...
AWS Auto Scaling : • AWS Tutorial : What is...
AWS Load Balancer : • AWS Tutorial : What is...
: FOLLOW ME :
Instagram - / rs.ranjitswain
Facebook - / ranjit.swain.9
Twitter - / rs_ranjitswain

Пікірлер: 52
@mohammedcementwala5657
@mohammedcementwala5657 Жыл бұрын
great project for beginners to understand how CI/CD works. great job!!
@RanjitSwain
@RanjitSwain Жыл бұрын
Thank you for nice comment. Glad this project could help the aspirants!
@jaydeepdutta9465
@jaydeepdutta9465 Жыл бұрын
In short a perfect project to practice. Thanks for uploading this 😊
@RanjitSwain
@RanjitSwain Жыл бұрын
Hi Jaydeep, thanks for your valuable comments.
@shashavali1502
@shashavali1502 3 жыл бұрын
Awesome bro, good explanation and keep make complete devOps flow completely .....
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Thanks Shasha for writing! I will make more on this shortly.
@yomajo
@yomajo Жыл бұрын
jenkins is running on.. remote cloud machine here at port 8080? How is it secured? Seems unsafe to have unencrypted port exposed to internet.
@RanjitSwain
@RanjitSwain Жыл бұрын
Thanks for your comment. This is just demo to show how it works. You can secure it.
@ayencoscolfield3312
@ayencoscolfield3312 Жыл бұрын
This was awesome good thinking a great project for guys to practice, thanks for uploading this 👍
@RanjitSwain
@RanjitSwain Жыл бұрын
Thanks Ayenco for your valuable comments. I'm glad it helped you!
@ayencoscolfield3312
@ayencoscolfield3312 Жыл бұрын
Would love to see this deployed into kubernetes at some points with ingress controller, hope you have that in mind, but all the same this was really a great project , thanks once again👍👍👍
@RanjitSwain
@RanjitSwain Жыл бұрын
Great suggestion! I will try to make one soon. Thank you.
@worldbankofvideos8643
@worldbankofvideos8643 Жыл бұрын
nice
@RanjitSwain
@RanjitSwain Жыл бұрын
Thanks
@gokurulezz
@gokurulezz 2 жыл бұрын
Sir please make a video starting from scratch for beginners
@RanjitSwain
@RanjitSwain 2 жыл бұрын
Thanks for your valuable comment. I will make one such project from scratch for the beginner.
@moinsyed195
@moinsyed195 3 жыл бұрын
Bro awesome, can you make same video including Ansible
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Thank you for your comment. I will make one shortly.
@suryamohanty7465
@suryamohanty7465 3 жыл бұрын
docker4ranjit/webappdemo - which image , means it's a tomcat image .you run tomee image in that
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Yes, the base image is the tomcat image. You can find the repo in GitHub link below 👇 github.com/ranjit4github/devOpsWeb
@vinayakav1285
@vinayakav1285 3 жыл бұрын
Amazing bro can u make complete DevOps flow like Git --Jenkins----Ansible---Docker
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Thank you for your comment. I will make one shortly.
@user-sf1ym5yj8b
@user-sf1ym5yj8b 3 ай бұрын
I have one confusion. When you first run the containers it’s running on 8282,8383. But after changing the code when you try to redeploy the containers shouldn’t it be failed to run becuase both ports are in use already. So either we have to stop the running containers manually or need to do something in the jenkins file. What steps did you do sir.. Because manually doing it should not be the case.
@RanjitSwain
@RanjitSwain 2 ай бұрын
Hi, yes, if a port is used already then the new container with same port will not work. Here in Jenkins, we have to first terminate the existing container and then recreate it.
@missycutie_
@missycutie_ 2 жыл бұрын
Hi, could i ask you the way I can get the public ip? What if my docker server is set up on my local host, I use ubuntu btw. Thanks in advanced
@RanjitSwain
@RanjitSwain 2 жыл бұрын
Hi, sorry for the late reply, if the docker is setup in local host then u can access it by using localhost or, ur local machine ip
@rameshpaudel8538
@rameshpaudel8538 3 жыл бұрын
I'm getting error [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ devOpsWeb --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /var/lib/jenkins/workspace/1 Maven project/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later. [INFO] 2 errors What version of JDK and Maven to use? I don't know anything about JAVA if i can look on the POM.xml to determine those?
@rameshpaudel8538
@rameshpaudel8538 3 жыл бұрын
Adding this on pom.xml worked 1.8 1.8
@ashutoshkumar7275
@ashutoshkumar7275 Ай бұрын
Hi Ranjit, I am getting below error when jenkins job is running, please suggest. ERROR: Tag must follow the pattern '^:[a-zA-Z0-9_]([a-zA-Z0-9_.-]){0,127}' ERROR: Tag must follow the pattern '^:[a-zA-Z0-9_]([a-zA-Z0-9_.-]){0,127}'
@RanjitSwain
@RanjitSwain Ай бұрын
Hi, it seems you might be providing wrong tag or, passing it wrongly
@ashutoshkumar7275
@ashutoshkumar7275 Ай бұрын
@@RanjitSwain It worked, correct tag needed to be provided.
@jasbircena
@jasbircena 3 жыл бұрын
maven not required in jenkins server ??
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Thanks for writing ✍️ Yes Maven should be installed in Jenkins server. Not only Maven, you need Java and Git also to be installed. All the pre-requisites required before setting up the project.
@worldbankofvideos8643
@worldbankofvideos8643 Жыл бұрын
container is created in linux ? but u created in execute shell in jenkins.
@RanjitSwain
@RanjitSwain Жыл бұрын
Yes, as the Jenkins container is the Linux one, I executed the shell command
@kksaxena1550
@kksaxena1550 3 жыл бұрын
How we can integrate the nexus repo for storing the images of docker
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Thank you for writing. You can use 'Nexus Artifact Uploader' plugin to upload into Nexus repo.
@suryamohanty7465
@suryamohanty7465 3 жыл бұрын
Ssh root 65.2.140.131 - in this machine docker is install or not
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Hi, thanks for writing! Yes, the docker must be installed to execute the docker command from Jenkins server.
@suryamohanty7465
@suryamohanty7465 3 жыл бұрын
This 65.2.140.131 - this private ip or public ip
@RanjitSwain
@RanjitSwain 3 жыл бұрын
@@suryamohanty7465 public ip
@suryamohanty7465
@suryamohanty7465 3 жыл бұрын
But I get this message when I build Docker build and publish marked build as failure,
@RanjitSwain
@RanjitSwain 3 жыл бұрын
@@suryamohanty7465 please paste the error or, call me 9176960215
@suryamohanty7465
@suryamohanty7465 3 жыл бұрын
Ssh root@ip address - this is the tomcat server?
@RanjitSwain
@RanjitSwain 3 жыл бұрын
Hi Surya, thanks for writing! This is the server where the container will get created. Yes, those containers have the tomcat server inside. If you have any further doubt or, concerns pls do let me know.
@michaelajiri
@michaelajiri Жыл бұрын
Hello Ranjit. Thanks for the tutorial. But I could not access my remote server IP address from Jenkins. Please look at the shell command if its correct or I need to do something else: sh 'ssh root@ "docker run -d --rm -p 8080:8080 --name core_api wealthmarket/wealthmarket_core-api:core-api"'
@RanjitSwain
@RanjitSwain Жыл бұрын
Hi Michael, You need to first setup the connection between the Jenkins and the node machine where you want to create the container. You need to share the public key of the root user from Jenkins to the node machine. You can follow the below link to do the setup. kzbin.info/www/bejne/ZmSngZKGYqZooK8
@michaelajiri
@michaelajiri Жыл бұрын
@Ranjit Swain please which tutorial can show me this better without much confusion. I am new to DevOps. Most especially Jenkins. Maybe I should explain my workflow. My springboot web app is hosted on DigitalOcean droplet and it is containerized. While my Jenkins docker blue ocean is also hosted on another DigitalOcean droplet. I have been able to integrate the app with GitHub and push to Dockerhub. Here are my declarative pipeline workflow: 1. First stage is mvn clean install 2. Second stage is build the docker image 3 Third stage is build image to dockerhub and it has two steps: * login to dockerhub * push image to dockerhub 5. Fourth stage is pull image from dockerhub by ssh into the remote server where I hosted the springboot webapp 5. Fifth is to ssh into the remote server where I hosted the springboot webapp and run the app that has been recently pulled. The workflow from the first stage to the third stage is going through but when it gets to the fourth it fails and it's as a result of the connection to the remote server from Jenkins. Please, how can this be resolved? Much thanks.
@vatsalajandrotia3226
@vatsalajandrotia3226 8 ай бұрын
Can you please help me Project Create a Docker file in project that build docker image for node JS application
@RanjitSwain
@RanjitSwain 8 ай бұрын
Hi @vatsalajandrotia3226, thanks for writing. Very soon I will upload a video on NodeJS application.
@rajeshaachari6690
@rajeshaachari6690 Жыл бұрын
Bro send me target file..
@RanjitSwain
@RanjitSwain Жыл бұрын
Hi, you get the target file once you build the project in Jenkins.
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,4 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 32 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 108 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 42 МЛН
DevSecOps Pipeline Project: Deploy Netflix Clone on Kubernetes
1:34:31
How to Push docker image to Docker Hub using Jenkins Pipeline
17:56
Complete Git and Github Hands On Tutorial with Commands
31:24
Cloud Champ
Рет қаралды 39 М.
GitLab CI CD Tutorial for Beginners [Crash Course]
1:09:00
TechWorld with Nana
Рет қаралды 1,2 МЛН