Deploy java web application in AWS: Jenkins auto deploy | How to host java web application in aws
ฝัง
- เผยแพร่เมื่อ 11 พ.ย. 2024
- This video will demonstrate about how to deploy java based web application on Amazon windows EC2 instance, using manual process and jenkins. First manually application is deployed and then, those steps have been done using automated script.
In the video github is used as code repository. Java code written in eclipse is pushed to github and then is deployed in AWS ec2 container using jenkins free style project. Jenkins install and setup is shown in the video.
Batch command used:
FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :8085.*LISTENING') DO TaskKill.exe /F /PID %%P
mvn clean install
start java -jar ./target/aws-demo-0.0.1-SNAPSHOT.jar
#channelcodeboard #java #springboot #jenkins #aws
deploy java web application in aws,how to deploy java web application in aws,aws java web application tutorial,aws java tutorial,aws java,aws java sdk ec2 example,creating java web application on aws,aws java developer tutorial,what is aws,deploying web application on aws,why java web applications in aws,how to deploy web applications on aws,aws training, ec2, jenkins, ci cd, auto deplyment, spring, spring boot, git, github, amazon web service, java, deployment, jenkins pipeline, spring web, spring rest controller
I am still confused about how to deploy java application to was ec2, I didn't see any configuration among Jenkins and EC2.
Many new things to me, great video!!!
How is the build on Ec2 instance being updated for every git push ? I'm confused, Am i missing that explanation in the video!
wow, really nicely done ^^
Could you please clarify a doubt? I didn't understand how is Jenkins communicating with AWS as I didn't see any explicit configuration done here.
Jenkins is installed in one of ec2 instances itself.
Dear code board , can you please make a tutorial as spring webapplication with MySQL connection and same deployed on AWS. Every tutor is missing this thing. It will make your video unique. Thanks.
I shall definitely do that. Many thanks for your suggestion.
why not also make the front end with angular to have an idea of the full process (angular + java + mysql)
Can I deploy pure java project in aws? No spring boot
Hi , I have problem can you help me ..I was trying to deploy java app from Windows Jenkins installed to aws Linux machine ..can you please give me steps I tried ssh agent installation but it is not working
Great video! Could I run a docker image in the execute windows batch command window? I'm trying to run my jar file in docker. Thanks.
Yes you can run docker.
Hi Codeboard Club, Thanks for your video for me everything works fine but after starting the app using Jenkins the web app is still not reachable. can you please help me out
Please check ec2 firewall rules
Hi Code Board, I can't download git in my VM on AWS. Can you help me install Git in my AWS. Thanks !
Sure. Are you getting any error?
@@CodeboardClub the error : "your current security settings does not allow you to download". I try to setting security in ie but, i can't do it. So, i don't know how you download git ?
@Tuấn Lê Minh Yes, I got it. There are two options 1. Use chrome to download git. 2. Use IE and lower the UAC (User account control). Ref: Google search how to change UAC windows.
@@CodeboardClub I have found the solution. Thankyou very much
Thanks. Glad I could help. :)
Source code and output
how Jenkins gets to know, AWS server IP ? After build, is done, how is transfer artifacts there ?
Are you running Jenkins from remote server or from localhost ?