R G
R G

Reputation: 13

Jenkins jar vs dockerfile

I started learning devops recently. Guys I have a doubt here please solve. After testing Jenkins package everything including code and dependencies into a war/jar file. Even dockerfile contains application's source code and dependencies. Now if we are using the docker container to deploy onto production server. Now where do we use the war file that is generated from JEnkins? someone please clarify.

Upvotes: 1

Views: 424

Answers (1)

Mostafa Hussein
Mostafa Hussein

Reputation: 11940

So lets take Jenkins itself as an example. you can download jenkins.war but still you need a place to host this war file so you can use docker for that. think of it as an alternative for virtual machines.

So the jar file that you have generated through jenkins build needs java or tomcat or whatever external dependencies to be up and running docker can do that for you. Take a look at the following example:

Upvotes: 1

Related Questions