Continuous Deployment | Deploy War File to Tomcat Webserver Running as Docker Container by Jenkins

preview_player
Показать описание
#DevOps, #CICD, #ContinuousDeployment Hello Friends, Welcome back to my channel. Today we are going to see another Jenkins tutorial, we are going to package the
java project using maven to a war file.Then we are going to deploy the same war file to a tomcat web server running on docker container. we will be using the same game of life git lab project for this tutorial. We are going to use free style
project here, in next tutorial we will do the same job as pipeline script. Dont forget to subscribe the channel, like the video and provide your comments.

Commands Used:

rm -rf dockerimages
mkdir dockerimages
cd dockerimages
touch dockerfile
cat "2Angle Brackets"EOT "2Angle Brackets" dockerfile
FROM tomcat
EXPOSE 8080
EOT
sudo docker build -t tomcatwebserver:1.0 .
sudo docker run -itd --name tomcatwebserver -p 8888:8080 tomcatwebserver:1.0

vi /etc/sudoers

jenkins ALL=(ALL) NOPASSWD: ALL

=======================================================
Follow me @:
======================================================
Рекомендации по теме
Комментарии
Автор

amazing. I can understand this quickly. thanks brother!

skzulka
Автор

I got an error docker not found when I run Deploy to Docker Job

samarthjain
Автор

is the jenkins installed on local machine ?

InfluenceSnapz